You are here:  » fatal error in in magicparser.php


fatal error in in magicparser.php

Submitted by rolli1 on Sat, 2006-09-09 12:22 in

Hi,
I have uploaded a datafeed in the feed directory and tried to register it. The datafeed is a .txt file. When registering it I get the following error message:

Fatal error: Call to undefined function: magicpaser_fclose() in /home/paydayc/public_html/sunglass/includes/MagicParser.php on line 2

What does this mean an how can I prevent this?

rolli

Submitted by support on Sat, 2006-09-09 12:29

Hello Rolli,

Sorry about that - there was a period of a couple of days when the version of MagicParser.php in the distribution contained an error.

If you download the latest version it should work fine. If you've made modifications to other files in the script and don't want to overwrite them, simply extract the latest distribution into a temporary directory and just copy includes/MagicParser.php into your live site on its own.

Cheers,
David.

Submitted by rolli1 on Sat, 2006-09-09 13:49

Thanks David, do you remember: I bought magicparser.php from you, can I also use this file or is it in any way different?

Roland

Submitted by support on Sat, 2006-09-09 19:13

Hi Roland,

The latest version of MagicParser.php will work fine. Your registration code / email address will be able to download both Magic Parser and Price Tapestry.

Cheers,
David.

Submitted by rolli1 on Sat, 2006-09-09 21:13

Already done, thanks again, but when I register the feed, I get the following error message:

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /mnt/ja2/04/811/00000013/htdocs/sun-glass/admin/feeds_register_step1.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /mnt/ja2/04/811/00000013/htdocs/sun-glass/admin/feeds_register_step1.php:2) in /mnt/ja2/04/811/00000013/htdocs/sun-glass/admin/admin_header.php on line 4

What does this mean?
If I run the script on another server everything works fine.

Roland

Submitted by support on Sun, 2006-09-10 09:27

Hi Roland,

Safe Mode is a special configuration of PHP that some shared hosts run to try and prevent scripts from being a security risk, and from consuming too many resources on the server.

One of the functions that is restricted by safe mode is set_time_limit() , which the admin scripts in Price Tapestry use to ensure that PHP does not timeout while importing a large feed.

The latest version of Price Tapestry will work in safe mode provided that your feeds can be imported within the time limit set by your host - normally 30 seconds - which is normally fine for several thousands products. Again, if you don't want to overwrite your main files simply extract the /admin folder and it will then work.

Cheers,
David.