codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
43 stars 24 forks source link

Fatal Error from contao-haste/library/Haste/Util/StringUtil.php #91

Closed cs1982 closed 7 years ago

cs1982 commented 7 years ago

The following error occurs while completeing an order in my Isotope Shop: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 95 bytes) in /var/www/web28674344/html/dev/composer/vendor/codefog/contao-haste/library/Haste/Util/StringUtil.php on line 92

Following this hint I installed Contao 3.5.18 via Live-Update. https://community.contao.org/de/showthread.php?64368-Isotope-Fataler-PHP-Error-nach-Update-auf-3-5-17&p=422669&viewfull=1#post422669

Additional I have memory trouble with composer in my environment. This is described here: https://community.contao.org/de/showthread.php?64368-Isotope-Fataler-PHP-Error-nach-Update-auf-3-5-17&highlight=contao+bestellung+fehler So I installed haste 4.14.2 manually. Despite manuall update the package management in Contao shows haste-Version 4.11.4

It is not possible to process the Isotope Order without the memory error. I can not locate the error reason (haste/ Contao/ Isotope/ environment) and hope for your overview.

Access to my Contao is no problem, if necessary.

cs1982 commented 7 years ago

For test I changed php version from 5.6.26 to 7.0.11. Now I have the following error:

Fatal error: Cannot use 'String' as class name as it is reserved in /var/www/web28674344/html/dev/system/modules/core/library/Contao/String.php on line 28

I tried it with haste 4.14.2 an 4.11.4

aschempp commented 7 years ago

These are two separate issues. The String class has been renamed in the latest Contao version to support PHP 7, but apparently one of your extensions is still using the old name (neither Haste nor Isotope does).

Regarding the memory issue, can you tell me the latest message? Because after you updated the extension I assume the line number has changed. Also, can you try to remove all content and especially all simple tokens and inserttags from your notification message and try if it works then?

cs1982 commented 7 years ago

Ok, back to memory error. I deactivated all content from the site "order notifcation" (Bestellbestätigung im Isotope Modul Kasse). Using haste 4.14.2. Same error occurs: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2048 bytes) in /var/www/web28674344/html/dev/composer/vendor/codefog/contao-haste/library/Haste/Util/StringUtil.php on line 92

cs1982 commented 7 years ago

Now I used an empty site layout to eliminate all influence of modules in header and footer. And I deactivated the Gimick "animated modal" from my CTS Theme "Universal 2". The notification site is blank.

This error occurs: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 649 bytes) in /var/www/web28674344/html/dev/composer/vendor/codefog/contao-haste/library/Haste/Util/StringUtil.php on line 112

cs1982 commented 7 years ago

Email Notification causes the error. See Community Thread: https://community.contao.org/de/showthread.php?64368-Isotope-Fataler-PHP-Error-nach-Update-auf-3-5-17&p=423001&viewfull=1#post423001 But where i have to solve the issue? Do not use some or all Simple Tokens/ Inserst Tags or is it on development to handle this?

cs1982 commented 7 years ago

Can I anything do to support?

qzminski commented 7 years ago

@cs1982 can you update the haste to 4.14.3 and see if the issue still occurs?

cs1982 commented 7 years ago

I updated. It works! Thanks.

2016-12-13 10:09 GMT+01:00 Kamil Kuzminski notifications@github.com:

@cs1982 https://github.com/cs1982 can you update the haste to 4.14.3 and see if the issue still occurs?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/codefog/contao-haste/issues/91#issuecomment-266684657, or mute the thread https://github.com/notifications/unsubscribe-auth/ADyNwHXrwplfXZo86iVaaihlTGlb5dWJks5rHmC3gaJpZM4Kh9fQ .