Jump to content

Blank Page on index.php?_a=checkout, index.php?_a=confirm


Guillaume
 Share

Recommended Posts

Hi,

I know I should probably give more details, but I don't know exactly where to start the investigation. For a reason which I ignore, I am getting a blank page on index.php?_a=checkout (when trying to proceed with the cart recap right before payment page) and on index.php?_a=confirm (when trying to add an item to the basket).

I believe it's solely a php issue (nothing coming from the back-end), as I can still proceed with payment by anually changing the URL to index.php?_a=gateway. After payment I am redirected to index.php?_a=complete and can see the order summary - no problem.

I tried doing a back-up of my Cubecart folder to a date where things worked ok, but it didn't help. Maybe I did it wrong though...

I usually get this blank page whenever my code has a syntax error. I'd like to be able to check the file which drives these index.php pages. The file index.php looks absolutely ok and hasn't been touched for a while. Any hint as of where I could start investigating from would be very welcome!

Guillaume

Link to comment
Share on other sites

Let's see if the error is getting logged into the System Error Log (admin, Error Log, System Error Log tab).

If not, then maybe the error could be caught in PHP's error log. (https://forums.cubecart.com/topic/51550-how-to-create-the-error-log/)

It is very difficult to catch an error in the Smarty templates. Have you made any changes in a Smarty template -- including any email templates?

 

Link to comment
Share on other sites

Thanks for the prompt answer. Here we go:

  • The only update I have made to the SMARTY template is in admin/index.inc.php, I have the following:

$GLOBALS['smarty']->assign('STORE_URL', CC_STORE_URL);

  • I am not sure where the System Error Log is displayed? Is that in the admin panel? I didn't find the error log you are referring to
  • Regarding the PHP error log, I followed the procedure you mentioned on the forum linked you posted. And I got the enclosed error log. What really puzzles me is that the error seems to be referring to functions and variables which are core Cubecart and which (to my knowledge) I have not touched

Any thoughts?

error_log

Link to comment
Share on other sites

The module file /admin/index.inc.php is not a template. But using the assign() function here is appropriate.

In admin, near the bottom of the left pane navigation list, click "Error Log". On the page that is displayed, click on the tab labeled "System Error Log".

The errors logged in the error_log file are benign. If there is a syntax error with a template, it is not getting recorded in the generated error_log file.

Link to comment
Share on other sites

Thanks that was very helpful! The error log showed several similar notices and warning (benign, as you said) and one exception regarding a call which is made to Parcel2Go. Deactivating the Parcel2Go module, everything now works normally. I am copying the Parcel2Go error below. It might be that everything failed because we backed up recently and there were no setting filled in in that module, although it was activated. Thanks a lot again!

 

[<strong>Exception</strong>] /home/clients/730d21bd55854ec4d0c02aa159bd4077/sites/www.temp-alerte.com/modules/shipping/Parcel2Go/shipping.class.php:25 - SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://v3.api.parcel2go.com/ParcelService.asmx?WSDL' : failed to load external entity "https://v3.api.parcel2go.com/ParcelService.asmx?WSDL"
https://www.temp-alerte.com/index.php?_a=confirm

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...