Call-back icon  Sales: Call 800.374.8146 (N America)|757.278.0920 (International)

Magento

Open Source eCommerce Evolved

Magento Forum

   
Page 1 of 2
errors keep arising, application fails
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

After blank pages yesterday, I moved to set up two clean installs of Magento. One is local, running MAMP Pro and one is on my dedicated-virtual server at (mt). I’ve pored over documentation and the forums and everything was clean. I’ve run the latest upgrades via pear successfully. I’ve been clicking all over in the admin changing settings and then, suddenly, on both sites on my server, magento is serving up blank pages.

I have modified memory_limit to 128M in php.ini AND the htaccess file for each site. I’ve restarted the server multiple times. Why does this keep striking?

Here’s the error logged when it occurs:

[Wed May 28 12:14:05 2008] [error] [client 64.25.81.82] PHP Fatal error: Class ‘Varien_Profiler’ not found in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 47, referer: http://store.rubiegreen.com/index.php/admin/system_config/edit/section/design/

I’m staring at blank pages on two different URLs. I can’t look at the admin or the front end of the sites. Server resources are fine.

I set display_errors on in php.ini and restarted the server and now pages are loading. This is driving me crazy. Why is that error occuring??

Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

If you are running APC or other bytecode cache, you might need to restart web server after you move or change files or directories.

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

Hi Moshe,

The server is not running any cache utilities. Magento is, though, right?

Thanks,
Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial Web Host
Sr. Member
 
Avatar
Total Posts:  171
Joined:  2007-11-08
Phoenix, AZ
 

Your site is coming up ok for me.

You might want to delete the contents of your session and cache directories in var if you are continuing to experience problems.

 Signature 

Crucial Web Hosting
Are you ready to Split-Shared™ hosting?
Magento Containers lets you run your business, we’ll do the rest.

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

Thanks for the suggestions.

I actually ran a load tester on it for a while after the last restart and its been fine. The questions:

1. Why are the restarts required *and* why I have been working on this for 2 weeks now and only seeing blank (suppressed error) pages as of yesterday? Even after bumping up mem limit.
2. I have two domains running on the dedicated virtual, with Magento sites working. Two databases, two sets of files. When one went down today, the other did as well.

What I’m getting at is this - I’m setting up a local dev environment, and will maintain a staging URL to deploy code to and test, as well as for testing upgrades. But if that kills both installs on the server, and I’m hosting more than one client on my dedicated virtual server, I’ve got a problem if restarts are required.

Thanks again for the help.

Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

I just hit the URL now and it’s blank. I’ve made *no* changes to the site this morning. Things were fine last night.

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

Cache and sessions files deleted.

No changes to the site files or config since yesterday, was working last night.

Errors logged:

[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once(Mage/Core/functions.php) [<a href=’function.include-once’>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 44
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once() [<a href=’function.include’>function.include</a>]: Failed opening ‘Mage/Core/functions.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 44
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once(Varien/Profiler.php) [<a href=’function.include-once’>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 45
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once() [<a href=’function.include’>function.include</a>]: Failed opening ‘Varien/Profiler.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 45
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Fatal error: Call to undefined function checkMagicQuotes() in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 53

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

Blank pages are gone—for the timebeing—as I turned off Safe Mode systemwide (php.ini) and restarted the server. Will continue monitoring. Still wondering what the deal is.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial Web Host
Sr. Member
 
Avatar
Total Posts:  171
Joined:  2007-11-08
Phoenix, AZ
 
circa1977 - 29 May 2008 07:49 AM

Blank pages are gone—for the timebeing—as I turned off Safe Mode systemwide (php.ini) and restarted the server. Will continue monitoring. Still wondering what the deal is.

Was safe mode on?  Magento will not run if safe mode is enabled.

Moshe - 11 September 2007 02:20 PM

Magento will not run in safe mode.

This page: http://www.php.net/manual/en/features.safe-mode.functions.php shows that absolutely necessary functions are disabled in safe mode, such as:
header(), fopen(), move_uploaded_file(), unlink(), etc.

My guess is that more likely the ‘fix’ was restarting your web server.  Ultimately, this most likely means that something is misconfigured and your Apache is dieing over time.  Likely, a memory related issue.

 Signature 

Crucial Web Hosting
Are you ready to Split-Shared™ hosting?
Magento Containers lets you run your business, we’ll do the rest.

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

I was toggling it off in the Plesk panel for each domain, assuming that would take precedent over anything global. Like I said, the site *had* been working fine prior. Perhaps that was when it was on an exclusive IP setting and the only site on the dedicated-virtual server. Current scenario was:

Two Magento sites on the server
Shared IP pool on the server
Safe Mode ON in PHP.ini
Safe Mode UNCHECKED (off) in domain setup for each site

They’d cruise along for a few hours or more and then start throwing blank pages.

As I said, I’ve now turned Safe Mode OFF in php.ini as well. The restart is what has things working again. We’ll see how long this lasts.

- Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

Yeah. It’s back. I just saved an edit to a template file over FTP. Safe Mode is off via php.ini, and errors are now on:

http://rubiegreen.slimkiwi.net/east-village-1.html

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

It’s not Apache, as other sites are running fine. Return times are fine. All resources on the server are well within limits.

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

After reading this post - http://www.magentocommerce.com/boards/viewreply/25498/ - I put the following

require_once '/lib/Zend/Loader.php';
Zend_Loader::registerAutoload ();

into index.php before

require_once $mageFilename;

It’s working again, without restart. Still looking for a real solution. I don’t like the idea of keep tracking of hacks to the ‘system’ .

Mark

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/lib/Zend/Loader.php) is not within the allowed path(s): (/var/www/vhosts/rubiegreen.slimkiwi.net/httpdocs:/tmp) in /var/www/vhosts/rubiegreen.slimkiwi.net/httpdocs/index.php on line 37

It looks like there’s “/lib/” in include_path - please create phpinfo.php, put it in Magento’s folder and post a link.

<?php phpinfo(); ?>

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

Spoke too soon!!!! Now getting:

Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/lib/Zend/Loader.php) is not within the allowed path(s): (/var/www/vhosts/rubiegreen.slimkiwi.net/httpdocs:/tmp) in /var/www/vhosts/rubiegreen.slimkiwi.net/httpdocs/index.php on line 37

Warning: require_once(/lib/Zend/Loader.php) [function.require-once]: failed to open stream: Operation not permitted in /var/www/vhosts/rubiegreen.slimkiwi.net/httpdocs/index.php on line 37

Fatal error: require_once() [function.require]: Failed opening required ‘/lib/Zend/Loader.php’ (include_path=’.:’) in /var/www/vhosts/rubiegreen.slimkiwi.net/httpdocs/index.php on line 37

I have a 6/9 deadline to launch a Magento site. Can anyone help with this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
circa1977
Member
 
Total Posts:  44
Joined:  2008-03-01
 

Hi Moshe,

here’s the phpinfo link: http://rubiegreen.slimkiwi.net/cfg.php

Please note that *this* is the real issue. What you saw was the result of an attempt at a fix from another thread:

[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once(Mage/Core/functions.php) [<a href=’function.include-once’>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 44
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once() [<a href=’function.include’>function.include</a>]: Failed opening ‘Mage/Core/functions.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 44
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once(Varien/Profiler.php) [<a href=’function.include-once’>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 45
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Warning: include_once() [<a href=’function.include’>function.include</a>]: Failed opening ‘Varien/Profiler.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 45
[Thu May 29 08:29:12 2008] [error] [client 64.25.81.82] PHP Fatal error: Call to undefined function checkMagicQuotes() in /var/www/vhosts/store.rubiegreen.com/httpdocs/app/Mage.php on line 53

I saw in that thread that there may be a PHP 5.2.5 bug problem impacting Magento. Is that a known issue?

Mark

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 2
 
Sales: Call 800.374.8146 (North America) 757.278.0920 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
33268 users|387 users currently online|73921 forum posts