Steve Posted January 7, 2019 Posted January 7, 2019 When I able the module I get the errors: ``` Fatal error: Out of memory (allocated 23068672) (tried to allocate 8192 bytes) in C:xampphtdocswebshopclassesCart.php on line 2364 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) in C:xampphtdocswebshopclassesObjectModel.php on line 307 ``` As you can see I have more then enough memory. I contacted the support on 12-20-2018, then send another message on 1-02-2019 and one today. Now I get the this message: ``` Hi, Sorry we cannot give you support for the module for this platform. However, we can help you but this intervention will be paid for. Thanks for your understanding. ``` So in short, bad support from these guys. They somehow keep thinking that TB is so much different than PrestaShop 1.6. Note that the module earlier worked perfectly, so it's definitely not TB's fault.
Steve Posted January 7, 2019 Author Posted January 7, 2019 https://addons.prestashop.com/en/price-management/12794-options-fees-taxes-and-discounts-shipping-cost.html 'motionSeed'.
Steve Posted January 9, 2019 Author Posted January 9, 2019 Does anyone else know what could cause this problem? I already did some research and I think that one or more files somehow take way too much memory.
lesley Posted January 9, 2019 Posted January 9, 2019 How much memory does your computer have? I would throw more memory at it and see if it helps.
Steve Posted January 9, 2019 Author Posted January 9, 2019 Just set my memory limit to 2048M. Still the same: Fatal error: Out of memory (allocated 570425344) (tried to allocate 4096 bytes) in C:\xampp\htdocs\webshop\override\classes\Cart.php on line 164 When I refresh: Fatal error: Out of memory (allocated 538968064) (tried to allocate 4096 bytes) in C:\xampp\htdocs\webshop\classes\ObjectModel.php on line 306
lesley Posted January 9, 2019 Posted January 9, 2019 You might try to put one in your /classes directory and see what it registers.
Steve Posted January 9, 2019 Author Posted January 9, 2019 What should I put in the /classes directory?
lesley Posted January 9, 2019 Posted January 9, 2019 A php info file to see if that directory has a limit on it. Something is limiting the module to 528mb of ram.
Steve Posted January 9, 2019 Author Posted January 9, 2019 XAMMP gives me an access denied when I put the phpinfo file in the /classes directory.
lesley Posted January 9, 2019 Posted January 9, 2019 Hmm strange, it could be xammp that is the issue. Have you tried this online?
lesley Posted January 9, 2019 Posted January 9, 2019 You might give that a go and see if it works, set up an online dev site.
datakick Posted January 9, 2019 Posted January 9, 2019 I have seen few modules, for example this one, which contains code like this: php @ini_set('memory_limit', '1024M'); The intent of the developer was to increase memory limit, and it may work on some hostings with low memory settings. But if you have more than 1G of memory available you would never utilize it, as long as this module is installed and enabled. @Steve, maybe you have some gem like this installed on your server as well?
lesley Posted January 9, 2019 Posted January 9, 2019 Oh, I did not realize it was open source, I came across that a few months ago in that very module.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now