Can I Enable simplexml on php.ini? - joomla

I've been using Joomla 1.6 locally on my computer. Everything's been working fine. I uploaded the web files to the company's server and all of a sudden I'm getting the following error:
Fatal error: Call to undefined function simplexml_load_file() in...
I've checked several online communities and some people are saying that simplexml should be enabled. I checked phpinfo.php and simplexml seems to be enabled on my computer; while it is disabled on the company server.
I don't have the privileges to enable this on the company server, so I was wondering if it will be possible for me to use php.ini to enable simplexml?

ext/simplexml cannot be enabled in a php.ini. It either is enabled in your PHP installation (that's the default) or it has been disabled intentionally. You should contact your responsible administrator... In my opinion it's not really the best idea to disable core extensions such as ext/simplexml, ext/dom and so on - a lot of code builds upon those extensions, and XML capabilities should be considered a core feature.

Related

Getting modules working in Joomla 3.1.4

I am experimenting with Joomla 3.1.4. Whenever I add a new module the template does not show at all in the front-end. The site is blank. On disabling the new module it starts showing properly again. Even a basic hello world type of module does not seem to work and nor does a third party extension I have tried.
I can see them in the extension manager and in the module manager and they have installed successfully. Frustrated with all this I decided to install a new 3.1 template which too installed successfully. However this template does not show anything in the front-end either with my module enabled. It almost seems that there is some sort of security restriction which is disabling the template from rendering whenever any change is made to the basic installation.
Can someone please give pointers to resolving this odd behaviour?
Probably one or some of the core files required for the modules to work are missing.
Head to Global configuration and make sure your Error reporting is set to development. Reload the page and update your question with the error message.
Why not try the newer Joomla 3.1.5 (Download page)? I know that 3.1.4 had at least one problem which could possibly cause server errors in conjunction with extensions (the most likely reason for the blank page that you see).
In general, when encountering a blank page, the first thing to do should be to check the error log of your webserver!

ajax error with openscholar profile in Drupal

Creation of a Drupal 7.19 website for OpenScholar 3.x failed with message: "The website encountered an error while retrieving /install.php?profile=openscholar&locale=en&id=1&op=finished" .
This appeared during the "install profile" phase on Lion, with MAMP despite php max_execution_time = 240 and memory_limit = 128 MB; after >80% of modules were installed, and just after the Google_Analytics module was installed. (Same happened, exactly, with .gitignore there or not; and with max_execution_time = 30). Used git to place OpenScholar stuff in the Drupal profile directory, and that seems correct, since ~80% of OpenScholar modules were found and reportedly installed.
Is there a fix to use at my end, or is this an error in OpenScholar 3.x (which is not yet available in production version, but seems to work for other people)?
I've received suggestions to delete os_ga from the openscholar.info file and to delete the install file. After I did both (either, alone, failed) the installation went through to completion. However many strict warnings appeared. I have not yet tried to bring in the ga (Google Analytics) module independently of the OpenScholar profile approach.
In any case, this experience may be useful to others.

Undefined AITOC function at app/code/local/Aitoc/Aitoptionstemplate/Model/Observer.php on line 11

I copied the website files of a live magento website to my local machine. I try to open the home page and a blank white screen turns up.
In the apache2 error log, I find the following line:
PHP Fatal error: Call to undefined function kYESppcDEoBrEZyw() in .../httpdocs/app/code/local/Aitoc/Aitoptionstemplate/Model/Observer.php on line 11
The culprit line is:
if(Aitoc_Aitsys_Abstract_Service::initSource(__FILE__,'Aitoc_Aitoptionstemplate'))
{ kYESppcDEoBrEZyw('e71e3cbbed8235b2be55dfb8db045b91');
and the other bracket closes at the end of the file.
It seems there is an extension called Aitoc custom options template installed. That's fine but what is the purpose of the strangely named function? And how is it working on the live site?
Any leads will be appreciated.
We need to be careful here since the website uses 3rd party extensions and the extension protects its license - it doesn't allow using the extension without installing the license first and throws the above error.
So you'll need to install the license on the local/dev server first before starting work on the website. You can also disable the extension(for AITOC) and get the website working by following the instructions at:
http://www.aitoc.com/en/magentomods_custom_options_templates.html#docs
I did disable it and I am able to run the website on the dev server.
I had the same issue.One more extension was installed in my site "Custom Product Preview".
So some files were missing while installing the extension.
When we uploaded the same missing files.Then refreshed the admin section.It asked for the license information after providing license information everything worked fine.
So be careful while installing the extension.
Also install the license carefully.
For me "/app/code/local/Aitoc/Aitsys/etc/compilation.xml" was also missing.

How to debug magento application

I am working with Magento but i didn't find a very good way to debug my modules. For example, many time, i got a blank page with no php error and no apache error. For example, in backend, if one grid controller isn't well set, i don't have an error.
How to debug Magento module?
It sounds like you want to enable Developer mode. Add this to your .htaccess file:
SetEnv MAGE_IS_DEVELOPER_MODE "true"
You may also want to enable display errors in index.php:
ini_set('display_errors', 1);
The best way I have found to debug is with X-Debug in a local environment. You can also use log files to help debug in a production environment, if your unable to run X-Debug in the environment.
I've got a more detailed posting here:
https://gist.github.com/molotovbliss/2792c6c59410d75e5baf249b76413247
Consider also installing XDebug
This thread is old but useful.
Debugging tools and tricks are important as it saves lots of time of a developer.
Here is a compiled list My company Uses.
Use of Eclipse debugger: Magento is installed on a desktop using Eclipse debugger we apply breakpoints and other debugging tricks.
Use of Bug commerce as suggested in above post.
Use of Mage::log for error log and exception log.Also Magento Report files.
Use of Varien Object getData, debug.
Use of back trace: Mage::log(Varien_Debug::backtrace(true, true), null, 'backtrace.log')
Remote server level debugging.
var_dump PHP function to echo and exit.
If you are (want to be) a real Magento Developer, here is the best combination of IDE and plugin you must use to work on your Magento Projects.
First of all, phpStorm the best IDE you can find.
Exist a very helpful plugin called magicento that you can use auto-complete, find in path magento, create modules very quickly and without issue, other great stuff you can use with that plugin.
Of course need to install Xdebug (be carefully if you already run a project with ioncube, bc you need to make some trick there, Xdebug doens't work properly with ioncube loader).
This last item on the list is something I need to be reviewing but I think should be great to debugging porpoises, MagentoDebugger Chrome App.
Let me know if you need something else or any help installing some of the stuff.
Best,
Alejandro.
You can look in var/log/exception.log or system.log in the magento root. These are the directories for Magento excepetions and logs. Otherwise you might need to increase the php error log level.
Alan Storm created a Commerce Bug to help with some inline development issues.
Please try to use this magento debugger, it's chrome extension. http://w3site.org/magento_debugger it's realy speeds up a work. Just need to configure on the backend once and use Chrome extension.
Here easy to debug blocks, mails. Easy profile your extensions, etc.

Installing cc.net on Windows Vista

Trying to configure cc.net on windows vista but keep getting errors. Now getting the following error
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension
configuration. If the page is a script, add a handler. If the file
should be downloaded, add a MIME map.
Can anyone plz tell which MIME type to add to get it work
First go to C:\Windows\Microsoft.NET\Framework\v2.0.50727 via the command line and run aspnet_regiis.exe /i.
Next check the ISAPI and CGI Registrations under IIS for the site and make sure the ASP.NET 2.0.x is there and is enabled. I've seen ASP.NET 2.0.x be listed even though it wasn't installed properly and I've also seen the ASP.NET 2.0.x web server extension be disabled, both cause a similar issue to what you're encountering.
If you haven't gotten this yet (I see it's an old post) first do the aspnet_regiis.exe /i as recommended by wegrata, then
%systemroot%\system32\inetsrv\APPCMD.EXE migrate config "Default Web Site/ccnet"
Also, instead of doing the aspnet_regiis bit, you should be able to accomplish the same by turning on ASP.NET from Add/Remove windows components. This was what I had to do on Win 7

Resources