You are here:  » Safe Mode error (fixed?) and then backfilling message

Support Forum



Safe Mode error (fixed?) and then backfilling message

Submitted by chrisjpopp on Tue, 2011-04-05 19:43 in

I got a VPS Level 3 account with HostGator and kept getting an error when I ran import.php. The error is:

---

PHP Warning: set_time_limit(): Cannot set time limit in safe mode in {link saved} on line 2

---

So I did php -c php.ini scripts/import.php and put safe_mode=Off in a fresh php.ini file in httpdocs. That got rid of the timeout error.

Now the problem is when I run the import.php to call the feed, I am getting "backfilling reviews...[done]". This is with @all, @modify and nothing after the feed name.

Any ideas?

Submitted by support on Wed, 2011-04-06 07:33

Hi Chris,

If this is being run from an automation script it may be the issue that I encounter occasionally in which PHP does not internally change directory to the same folder as the script. If this could be the case, in place of:

php /path/to/scripts/import.php @ALL

use:

cd /path/to/scripts/
php import.php @ALL

(also make sure that @ALL or @MODIFIED are upper case as they are case sensitive)

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by chrisjpopp on Wed, 2011-04-06 12:52

It's when I manually run the script from httpdocs.

php -c php.ini /var/www/vhosts/domainnamehere/httpdocs/scripts/import.php /var/www/vhosts/domainnamehere/httpdocs/feeds/feedname.xml

I've done it with ~/httpdocs/dirname as well. No go.

----------

Now I am getting in addition to the above problem,

Failed loading /usr/lib64/php/zend/ZendOptimizer-5.3.so: /usr/lib64/php/zend/ZendOptimizer-5.3.so: cannot open shared object file: No such file or directory

-----------

ARGH!

Submitted by support on Wed, 2011-04-06 13:22

Hi Chris,

import.php needs to be able to locate the /feeds/ folder (it follows $config_feedDirectory in config.advanced.php - could you have a go with:

cd /var/www/vhosts/domainnamehere/httpdocs/scripts/
php -c php.ini import.php feedname.xml

Cheers,
David.
--
PriceTapestry.com