Forums / General Questions / Blank Screen after Add to Cart

Blank Screen after Add to Cart

Views: 930

Results 1 to 10 of 10
7 May 2015, 9:37 AM
#1
mrdanashton avatar

mrdanashton

New Zenner

Join Date:
Apr 2014
Location:
UK
Posts:
15
Plugin Contributions:
0

Blank Screen after Add to Cart

Hi,

Please see: http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=19_10&products_id=2504 and 'add to cart' .

As you will see, this goes to a blank screen, (in internet explorer displays HTTP 500 Internal Server Error).

I have the below errors as some help. I have replaced all these files and checked for extra lines / spaces at the begin and end as some posts state. I have also re-uploaded the entire template again. I have also enabled strict error reporting.

I am at that stage where its turning me slightly crazy, and would be really grateful for anyones assistance with this. For what its worth - I have previously installed the same template elsewhere, and it works fine - ( for example: http://www.carseatcushions.co.uk/index.php?main_page=product_info&cPath=1&products_id=2 ).

Its possible of course, I am missing the obvious now rather blurry eyed with it all. Theme Developer / Hosting Company can only direct me to the forum - so not sure where to go next.

Hope someone can help! - Thanks in advance, Dan.

[Wed May 06 14:43:14 2015] [error] [client 212.42.162.131] PHP Warning:
session_save_path() [<a href='function.session-save-path'>function.session-save-path</a>]: open_basedir
restriction in effect.
File(/home/sites/littlehamptoncuttingtools.com/public_html/cache) is not within
the allowed path(s): (/www/business/14517:/www/business/tmp:/www/business/temp)
in /www/business/14517/includes/functions/sessions.php on line 167, referer:
http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=3_37&products_id=1646
[Wed May 06 14:43:15 2015] [error] [client 212.42.162.131] PHP Fatal error:
Call to undefined function zen_create_random_value() in
/www/business/14517/includes/classes/shopping_cart.php on line 1297, referer:
http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=3_37&products_id=1646
[Wed May 06 14:43:15 2015] [error] [client 212.42.162.131] PHP Fatal error:
Class 'queryFactoryResult' not found in
/www/business/14517/includes/classes/db/mysql/query_factory.php on line 194,
referer:
http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=3_37&products_id=1646

7 May 2015, 11:27 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Blank Screen after Add to Cart

mrdanashton:

Hi,

Please see: http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=19_10&products_id=2504 and 'add to cart' .

As you will see, this goes to a blank screen, (in internet explorer displays HTTP 500 Internal Server Error).

I have the below errors as some help. I have replaced all these files and checked for extra lines / spaces at the begin and end as some posts state. I have also re-uploaded the entire template again. I have also enabled strict error reporting.

I am at that stage where its turning me slightly crazy, and would be really grateful for anyones assistance with this. For what its worth - I have previously installed the same template elsewhere, and it works fine - ( for example: http://www.carseatcushions.co.uk/index.php?main_page=product_info&cPath=1&products_id=2 ).

Its possible of course, I am missing the obvious now rather blurry eyed with it all. Theme Developer / Hosting Company can only direct me to the forum - so not sure where to go next.

Hope someone can help! - Thanks in advance, Dan.

[Wed May 06 14:43:14 2015] [error] [client 212.42.162.131] PHP Warning:
session_save_path() [<a href='function.session-save-path'>function.session-save-path</a>]: open_basedir
restriction in effect.
File(/home/sites/littlehamptoncuttingtools.com/public_html/cache) is not within
the allowed path(s): (/www/business/14517:/www/business/tmp:/www/business/temp)
in /www/business/14517/includes/functions/sessions.php on line 167, referer:
http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=3_37&products_id=1646
[Wed May 06 14:43:15 2015] [error] [client 212.42.162.131] PHP Fatal error:
Call to undefined function zen_create_random_value() in
/www/business/14517/includes/classes/shopping_cart.php on line 1297, referer:
http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=3_37&products_id=1646
[Wed May 06 14:43:15 2015] [error] [client 212.42.162.131] PHP Fatal error:
Class 'queryFactoryResult' not found in
/www/business/14517/includes/classes/db/mysql/query_factory.php on line 194,
referer:
http://www.littlehamptoncuttingtools.com/index.php?main_page=product_info&cPath=3_37&products_id=1646
You need to log into your admin and change your Configuration->Sessions->Session Directory setting from /home/sites/littlehamptoncuttingtools.com/public_html/cache to www/business/14517/cache.

7 May 2015, 4:56 PM
#3
mrdanashton avatar

mrdanashton

New Zenner

Join Date:
Apr 2014
Location:
UK
Posts:
15
Plugin Contributions:
0

Re: Blank Screen after Add to Cart

Thank you for that.

I have tried this - and changed to www/business/14517/cache (wasn't sure if I should have a / before or not, so tried that too) - and still the same.

7 May 2015, 5:56 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Blank Screen after Add to Cart

mrdanashton:

Thank you for that.

I have tried this - and changed to www/business/14517/cache (wasn't sure if I should have a / before or not, so tried that too) - and still the same.
Yes, that was my bad, the change should be /www/business/14517/cache. Are you still getting the exact-same error message?

8 May 2015, 11:03 AM
#5
mrdanashton avatar

mrdanashton

New Zenner

Join Date:
Apr 2014
Location:
UK
Posts:
15
Plugin Contributions:
0

Re: Blank Screen after Add to Cart

Hi - No worries, I am grateful for your help.

Yes, I have tried /www/business/14517/cache - and still the same.

8 May 2015, 11:27 AM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Blank Screen after Add to Cart

I'm puzzled. When you say "still the same", is the debug-log you're receiving exactly the same as the one you posted previously?

10 May 2015, 8:35 PM
#7
mrdanashton avatar

mrdanashton

New Zenner

Join Date:
Apr 2014
Location:
UK
Posts:
15
Plugin Contributions:
0

Re: Blank Screen after Add to Cart

Sorry, to confirm - this is what I now get from the debug currently, when trying to add to cart, after implementing above... (the add to cart button still goes to HTTP 500 Internal Server Error

[10-May-2015 21:30:54 Europe/London] PHP Fatal error: Call to undefined function zen_create_random_value() in /www/business/14517/includes/classes/shopping_cart.php on line 1297
[10-May-2015 21:30:54 Europe/London] PHP Fatal error: Class 'queryFactoryResult' not found in /www/business/14517/includes/classes/db/mysql/query_factory.php on line 194

10 May 2015, 9:45 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Blank Screen after Add to Cart

Never mind; off-base and incorrect advise.

14 May 2015, 10:01 AM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,718
Plugin Contributions:
56

Re: Blank Screen after Add to Cart

@mrdanashton, your post says you are running 1.5.0 - if so, this function should be in includes/functions/functions_general.php. Compare the copy on your site to a fresh download of 1.5.0.

If you are running 1.5.4, this function should be in includes/functions/password_funcs.php. Compare the copy on your site to a fresh download of 1.5.4.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 May 2015, 8:52 AM
#10
mrdanashton avatar

mrdanashton

New Zenner

Join Date:
Apr 2014
Location:
UK
Posts:
15
Plugin Contributions:
0

Re: Blank Screen after Add to Cart

Thank you SO much swguy!! Yes, I replaced includes/functions/functions_general.php with new copy and add to cart functions fine now.

Wish I could shake your hand...

Thanks again!
Dan.