|
Cheers Michael
I’ve uploaded the new release (0.6.14100) in the hope that it would change something, but unfortunately the same issue continues to trouble me in exactly the same way.
Let’s try to figure out why you cannot override default include_path setting. Please add the following code
echo ini_get('include_path');
in line 39 in app/Mage.php......
I changed the app/Mage.php file with the above code as you suggested and it returned
.:/usr/share/pear Warning: include_once(Mage/Core/functions.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/vhosts/lunarrastar.com/httpdocs/content/app/Mage.php on line 40
Warning: include_once() [function.include]: Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/lunarrastar.com/httpdocs/content/app/Mage.php on line 40
Warning: include_once(Varien/Profiler.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/vhosts/lunarrastar.com/httpdocs/content/app/Mage.php on line 41
Warning: include_once() [function.include]: Failed opening 'Varien/Profiler.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/lunarrastar.com/httpdocs/content/app/Mage.php on line 41
Fatal error: Class 'Varien_Profiler' not found in /var/www/vhosts/lunarrastar.com/httpdocs/content/app/Mage.php on line 43
however after a few refreshes (ok more than a few… perhaps 10 to 20) i get
.:/usr/share/pear:/var/www/vhosts/lunarrastar.com/httpdocs/content/lib:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/core:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/local:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/community
appearing at the top of my page…
which looks like what you were expecting
You can try to find where do you have php_admin_value include_path “.:/usr/share/pear” setting and remove it (it might be in any of the .htaccess files above the magento folder, or in virtual host httpd.conf file.
Another option is to override it from within your .htaccess, i.e. you should add the following line to the .htaccess file in Magento root folder (/var/www/vhosts/lunarrastar.com/httpdocs/content/.htaccess):
php_admin_value include_path ".:/usr/local/share/pear:/var/www/vhosts/lunarrastar.com/httpdocs/content/lib:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/core:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/local:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/community"
I tried adding this to my htaccess file as you suggested so my httpdocs/content/.htaccess file now looks like this
<IfModule mod_php5.c> php_flag magic_quotes_gpc off php_flag short_open_tag on php_flag register_globals on php_flag display_errors on php_value error_reporting 7 php_admin_value include_path ".:/usr/local/share/pear:/var/www/vhosts/lunarrastar.com/httpdocs/content/lib:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/core:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/local:/var/www/vhosts/lunarrastar.com/httpdocs/content/app/code/community" </IfModule>
DirectoryIndex index.php
RewriteEngine on
#RewriteBase /dev/magento/
RewriteCond %{REQUEST_URI} !^/media/ RewriteCond %{REQUEST_URI} !^/skin/ RewriteCond %{REQUEST_URI} !^/js/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
unfortunatly it returned a 500 internal server error
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@sitehq.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.0.52 (Red Hat) Server at www.lunarrastar.com Port 80
so i’m guessing the hosting company don’t want me to be doing that… or have i made a mistake?
additionally, I don’t have any htaccess files above my magento folder (/var/www/vhosts/lunarrastar.com/httpdocs/content/) with php_admin_value include_path in so I’m assuming it’s in the httpd.conf file… I’m on shared hosting and don’t have access to that file unfortunately, but I’ll send a support request to my hosting company to see if they can help out.... fingers crossed.
I do see PHP Version 5.2.5 in your phpinfo. Are you talking about another server ?
Ignore me, I have one server (that matters). you and the info.php are correct.
Btw, do you have any PHP accelerators installed ?
I’ve not used any PHP accelerators before and i dont know if my hosting company do.
Thanks so much for your assistance, I’m learning a lot…
I’ll contact my host and ask them about the include_path in the virtual host httpd.conf
|