shopping cart error for public users error 500 PHP Version 7.2 (7.3.2 same error

Started by brandiware, March 09, 2019, 10:56:30 AM

Previous topic - Next topic

brandiware

Hi all,

our shop does not display the shopping cart for non registered users. It produces error 500. For logged in users everything works fine

Joomla Settings User
Users can register: yes
new users: registered
guest users: guest

VM Settings Checkout:

ask for registry: yes
only registered users:yes
order tracking: registered and guest

We also updated the webserver to PHP Version 7.2 (7.3.2 also with same error)

jenkinhill

What is the 500 error logged as?  See http://forum.virtuemart.net/index.php?topic=117042.0

Joomla/VM versions?
There are some reports of Joomla issues with PHP7.3+
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

brandiware

Hi jenkin,


Joomla!-Version 3.9.3
VirtueMart 3.4.2

we have now reverted to PHP 7.2 - problem is the same.

I don't seem to get entries in the logs. php is set to log all errors.
How can I turn on logging to com_virtuemart.log.php ?

Thanks

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

brandiware

Already tried that, it does not send anything, nor does it log to the file. Anything I need to know re user registration settings on Joomla and VM ?

brandiware

Problem is, that the error logging runs out of memory, thats why I don't get anything useful when the php developer mode is turned on in VM

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 790528 bytes) in /html/TobraNeu/libraries/src/Log/LogEntry.php on line 116

GJC Web Design

u can set the Joomla debug system plugin to log/display only some factors ...  pick just errors . switch everything else off

the debug plugin can use an enormous amount of memory during debugging
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

brandiware

Thanks for the hint GJC, the fatal error catcher plugin did send me some data, albeit after a few hours...

RuposTel.com plg_system_fatal_catcher plugin detected a problem with your site.
Your site caused a blank screen upon a visit of this URL:

https://www.brandmeier.de:443/administrator/index.php?option=com_plugins&view=plugin&layout=edit&extension_id=10309

Error message data:
32 PHP Startup: Unable to load dynamic library '/usr/local/php/ext/imagick.so' (tried: /usr/local/php/ext/imagick.so (libMagickWand-6.Q16HDRI.so.2: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/ext/imagick.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718//usr/local/php/ext/imagick.so.so: cannot open shared object file: No such file or directory)) in file: Unknown line: 0

GJC Web Design

install/ enable imagick on the server

what is calling it?

afaik VM uses GD
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

brandiware

Hi GJC,

I disabled the extension in php.ini. Unfortunately this was not the root of my problem. Strange: logged in users can open the cart while non-registered customers get the 500 Error.
I will now install the whole thing locally to see if I get closer to the root cause.

Thanks, I keep you posted.

brandiware

Hi all,

now that the website is running locally including xdebug. I get the following error message (full screen):

Maximum function nesting level of '256' reached, aborting!

I have not managed to catch the responsible error yet. Can anyone point me to the PHP that is executed directly after pushing the addtocart button ?

Sorry for the probably ignorant question here but this error is really strange as it only occurs for non-registered users.


Milbo

We solved it together today with a ticket for one hour.

The main reason was assumingly a wrongly assinged mainvendor. Accidently the "is vendor", "is not a vendor" buttons were shown in a single vendor store. So he used these buttons to change the mainvendor, that lead to problems in the cart. On the other hand, it was just solved by using the new core, which I upload tomorrow. I assume that the quirk with the vendor leaded to a recursion, which is assumingly catched by the cart optimisation done last week.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

brandiware

thanks Max, for the effective late night session and for your intuition to ,,smell" the root causes quickly.

the new core rocks !