Blank Screen on Checkout - no messages w/debug on
- rhinoboy82
-
Topic Author
- Offline
Less
More
9 years 8 months ago #263583
by rhinoboy82
Blank Screen on Checkout - no messages w/debug on was created by rhinoboy82
-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.14
-- Browser(s) name and version -- : Firefox 51.0.1 64 bit
-- Error-message(debug-mod must be tuned on) -- : (blank screen)
We recently did a big upgrade from Joomla 2.5 running an older Hikashop version to the current of everything. Most of it has come together now, but I am having an issue with checkout. Here is the situation:
We are selling, among other things, Moodle eLearning classes using Joomdle-Hikashop integration. I am testing a checkout where the item is free, so there is no payment plugin involved. Once I hit the final submit button, the page "loads" for a long time (nothing changes on the screen). I receive three enrollment email messages from Moodle. These messages come nearly one minute apart and are identical, aside from the timestamp (and I should only be getting one). A few seconds after the third enrollment email, I finally receive the order creation email from Hikashop. Almost immediately after I get that email, the web page finally stops "loading" and goes blank.
I checked the forums and the first step seems to be to to turn on debugging, which I did, but the blank screen is totally blank. A "view source" is empty.
Any help would be appreciated!
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.14
-- Browser(s) name and version -- : Firefox 51.0.1 64 bit
-- Error-message(debug-mod must be tuned on) -- : (blank screen)
We recently did a big upgrade from Joomla 2.5 running an older Hikashop version to the current of everything. Most of it has come together now, but I am having an issue with checkout. Here is the situation:
We are selling, among other things, Moodle eLearning classes using Joomdle-Hikashop integration. I am testing a checkout where the item is free, so there is no payment plugin involved. Once I hit the final submit button, the page "loads" for a long time (nothing changes on the screen). I receive three enrollment email messages from Moodle. These messages come nearly one minute apart and are identical, aside from the timestamp (and I should only be getting one). A few seconds after the third enrollment email, I finally receive the order creation email from Hikashop. Almost immediately after I get that email, the web page finally stops "loading" and goes blank.
I checked the forums and the first step seems to be to to turn on debugging, which I did, but the blank screen is totally blank. A "view source" is empty.
Any help would be appreciated!
Please Log in or Create an account to join the conversation.
9 years 8 months ago #263584
by nicolas
Replied by nicolas on topic Blank Screen on Checkout - no messages w/debug on
Hi,
Did you also turn on the error reporting of the Joomla configuration ? That's the setting which allows the display of error messages on blank screens.
Also, what if you disable the Joomdle-Hikashop integration plugin ? Does it work ?
What if you change the Email sending settings of your Joomla configuration to something completely wrong (so that the emails fail to be sent) ? Do you still have a blank page ? The Email sending process can sometimes take a lot of time, so it mgith be linked to that.
What if you increase the "max_execution_time" setting of your php.ini does it help ?
Also, you could have a look at the PHP error log and the apache error log of your server. You might get some interesting information on what's going on.
Did you also turn on the error reporting of the Joomla configuration ? That's the setting which allows the display of error messages on blank screens.
Also, what if you disable the Joomdle-Hikashop integration plugin ? Does it work ?
What if you change the Email sending settings of your Joomla configuration to something completely wrong (so that the emails fail to be sent) ? Do you still have a blank page ? The Email sending process can sometimes take a lot of time, so it mgith be linked to that.
What if you increase the "max_execution_time" setting of your php.ini does it help ?
Also, you could have a look at the PHP error log and the apache error log of your server. You might get some interesting information on what's going on.
The following user(s) said Thank You: rhinoboy82
Please Log in or Create an account to join the conversation.
- rhinoboy82
-
Topic Author
- Offline
9 years 8 months ago - 9 years 8 months ago #263665
by rhinoboy82
Replied by rhinoboy82 on topic Blank Screen on Checkout - no messages w/debug on
Ok, did a couple of tests and got some error messages.
Test 1: I disabled all of the Joomdle plugins and I changed the Joomla SMTP config to point to a non-existent server. Joomla debug was On and Error reporting was set to Maximum. I also changed the php version from 7 to 5.6.
It did not take long for the page to load, it wasn't blank and I got this error message:
Warning: Creating default object from empty value in {path to site}/administrator/components/com_hikashop/classes/order.php on line 786
Test 2: I re-enabled the Joomdle plugins. This time it took a long time, but at least didn't go to a white page. I got a these messages:
Strict Standards: Only variables should be assigned by reference in {path to site}/plugins/system/joomdlehikashopstartdate/joomdlehikashopstartdate.php on line 38 (and this error again for line 47)
Warning: Invalid argument supplied for foreach() in {path to site}/plugins/system/joomdlehikashopstartdate/joomdlehikashopstartdate.php on line 105
Strict Standards: Only variables should be assigned by reference in {path to site}/plugins/system/joomdlehikashopgroups/joomdlehikashopgroups.php on line 38 (and this error again for line 47)
Warning: Invalid argument supplied for foreach() in {path to site}/plugins/system/joomdlehikashopgroups/joomdlehikashopgroups.php on line 105
Warning: Creating default object from empty value in {path to site}/administrator/components/com_hikashop/classes/order.php on line 786
Does any of this help? I've also attached a text file with these errors plus what was dumped to the server log.
Test 1: I disabled all of the Joomdle plugins and I changed the Joomla SMTP config to point to a non-existent server. Joomla debug was On and Error reporting was set to Maximum. I also changed the php version from 7 to 5.6.
It did not take long for the page to load, it wasn't blank and I got this error message:
Warning: Creating default object from empty value in {path to site}/administrator/components/com_hikashop/classes/order.php on line 786
Test 2: I re-enabled the Joomdle plugins. This time it took a long time, but at least didn't go to a white page. I got a these messages:
Strict Standards: Only variables should be assigned by reference in {path to site}/plugins/system/joomdlehikashopstartdate/joomdlehikashopstartdate.php on line 38 (and this error again for line 47)
Warning: Invalid argument supplied for foreach() in {path to site}/plugins/system/joomdlehikashopstartdate/joomdlehikashopstartdate.php on line 105
Strict Standards: Only variables should be assigned by reference in {path to site}/plugins/system/joomdlehikashopgroups/joomdlehikashopgroups.php on line 38 (and this error again for line 47)
Warning: Invalid argument supplied for foreach() in {path to site}/plugins/system/joomdlehikashopgroups/joomdlehikashopgroups.php on line 105
Warning: Creating default object from empty value in {path to site}/administrator/components/com_hikashop/classes/order.php on line 786
Does any of this help? I've also attached a text file with these errors plus what was dumped to the server log.
Last edit: 9 years 8 months ago by Jerome. Reason: removing attachment (having some private details)
Please Log in or Create an account to join the conversation.
- rhinoboy82
-
Topic Author
- Offline
9 years 8 months ago #263703
by rhinoboy82
Replied by rhinoboy82 on topic Blank Screen on Checkout - no messages w/debug on
Making some progress here. The multiple email message were the result of having too many enrollment plugins installed for Moodle. I disabled the ones that I didn't need and now I get just one enrollment email. It still takes a while to process the order and I am still getting this error:
Warning: Creating default object from empty value in {site_path}/administrator/components/com_hikashop/classes/order.php on line 786
Warning: Creating default object from empty value in {site_path}/administrator/components/com_hikashop/classes/order.php on line 786
Please Log in or Create an account to join the conversation.
- rhinoboy82
-
Topic Author
- Offline
9 years 8 months ago - 9 years 8 months ago #263708
by rhinoboy82
Replied by rhinoboy82 on topic Blank Screen on Checkout - no messages w/debug on
Another bit of information: I still get the Warning (mentioned in my previous post) when I purchase items that are regular store items. So in that case Joomdle is not involved.
Last edit: 9 years 8 months ago by rhinoboy82. Reason: revised for clarity
Please Log in or Create an account to join the conversation.
9 years 8 months ago #263706
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Blank Screen on Checkout - no messages w/debug on
Hi,
Thanks for the report.
It is "just" a warning so it should not be something blocking.
But the fact that the cart cannot be load after the order object is saved indicate that the cart has been deleted and removed from the cache. So I'll add a patch in order to get the cart (as cache) just before the order object is saved.
It would avoid that warning.
Regards,
Thanks for the report.
It is "just" a warning so it should not be something blocking.
But the fact that the cart cannot be load after the order object is saved indicate that the cart has been deleted and removed from the cache. So I'll add a patch in order to get the cart (as cache) just before the order object is saved.
It would avoid that warning.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: rhinoboy82
Please Log in or Create an account to join the conversation.
- rhinoboy82
-
Topic Author
- Offline
9 years 8 months ago #263748
by rhinoboy82
Replied by rhinoboy82 on topic Blank Screen on Checkout - no messages w/debug on
I hadn't tested this without Error Reporting. I just did and the white screen is gone, so that part of the problem was being caused by the multiple Joomdle plugins being invoked in error.
The final order processing still seems a little slow, but it's acceptable. Thanks for your and Nocolas' help on this.
The final order processing still seems a little slow, but it's acceptable. Thanks for your and Nocolas' help on this.
Please Log in or Create an account to join the conversation.
Time to create page: 0.138 seconds