QC 1.4 hanging when updating or deleting info...

src

No avatar

2006-10-18 08:01

I've got a real frustrating problem. Whenever I use the Admin pages to update or delete any items (Products, Attributes, Categories, Couriers, Orders), QC just hangs and won't respond to any other menu clicks. Eventually I get the error:

"Fatal error: Maximum execution time of 30 seconds exceeded in D:\Intranet\planetstarsys\store\admin.php on line 8"

The only remedy is to restart the browser. Once restarted I can see that the action took place (item updated or deleted), but still can't make easy changes.

I have updated the form action to fix the IIS 405 error (http://www.opensolution.org/Quick.Cart/forum/index.php?p=readTopic&nr=2605). Not sure if this contributes.

Does anyone know what causes this and how it may be fixed?

Thanks!

wewior (OpenSolution)

Avatar: wewior

2006-10-18 14:00

did version 1.3 works fine?
maybe header function makes that problem... try to remove that lines for test, for example from actions_admin/products.php file remove line:
header( 'Location: '.$_SERVER['PHP_SELF'].'?p='.$aActions['g'].'List&sOption=save' );
and try again

src

No avatar

2006-10-18 18:06

Wow! That was it! Thanks!

So what does the "header" line do that was causing this problem?

wewior (OpenSolution)

Avatar: wewior

2006-10-19 09:08

it redirects you to next page... maybe in iis that is wrong code, try to paste it again and after header function try to write in next line:
exit();
maybe it will help...
if you find any good solution post it here

src

No avatar

2006-10-20 02:59

Thanks wewior!

Both solutions (removing header line, and adding exit();) worked!

src

No avatar

2006-11-02 23:10

It's Back.

For reasons I can't explain, I've got the same situation happening again. I've tried both options outlined above by wewior, but to no avail.

Anyone have any hints?

Thanks

src

No avatar

2006-11-09 01:21

Seems like this is an IIS server issue.

I had been testing QC 1.4 Loaded (with no problems) on a Windows XP, Apache 2, PHP5 installation. When I finally posted the site on a Windows NT, IIS, PHP4.3.11 site, the Categorie > Save option result in a blank page and the browser hanging.

Also appears that the issue could be with plugins. I've seen some posts that indicate that the bare QC 1.3 works with no issues, but once plugins are added, the system hangs.

Anyone know a fix?

Thanks

jara

No avatar

2007-02-15 17:19

src ->
the same situation but at local 127.0.0.1 only.
So I changed "max_execution_time = 30" to 300 in php.ini as you can see and work but I dont know what is it :) On the web server I don“t have this problems.

Hi

PHP.INI
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30 =>300 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

Elmarconi

No avatar

2007-08-04 23:32

For reasons unknown to me i've found the next solution to be solving my issues:

Search "header( 'Location: '.$_SERVER['PHP_SELF'].'?p" for all *admin.php files:

Place session_write_close(); in front of that line, that is both in POST as in GET actions.

Sources:
http://nl3.php.net/manual/nl/function.session-start.php#57875
http://nl3.php.net/manual/nl/function.session-start.php#48283

However: http://nl3.php.net/manual/nl/function.session-start.php#51833 indicates that there is another solution ???

http://nl3.php.net/manual/nl/function.session-write-close.php#37644 seems to agree...

Since I'm no PHP ninja I cannot possibly tell you if this is truly the solution but it worked for me!

Gr, M

Back to top
about us | contact