Problem Adding Product to Promotion


I was trying to set up a promotion. Was trying to add a product to a Product Promotion… The product was not in the first screen, so I tried to search for the product and received the following error:

Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 262144 bytes) in /home/directory name/public_html/core/fn.catalog.php on line 3807

Then I tried using the “next” arrow to page through the products and I get a red error box that says OOPs, something goes wrong (parse error), try again.

I never tried to set up a promotion before.

I am using 2.1.1 unmodded.

Which setting needs to be changed?



Open config.local.php on your root directory and on the first lines, where shows:

// Set maximum memory limit

@ini_set(‘memory_limit’, 'in here you put a value like 128M for example ');

You can also coment out these lines, but depending on your host that might not work ,it’s simpler to just increase your memory value.

Bob, you are better off commenting that memory limit line out on your server. Our servers allow a much higher limit but your shop will only be able to use what value is placed in that variable if it is active.