Fatal error when trying to add a product :(

  • Posts: 157
  • Thank you received: 2
10 years 8 months ago #147692

-- url of the page with the problem -- :http://temp.yaeliq.com/fruits/product/24590-acai-berry-2.html
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 2.5
-- PHP version -- : 5.4.24
-- Browser(s) name and version -- : chrome last one
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 512 bytes) in /home/yaeliq1965roz/public_html/temp/libraries/joomla/database/database/mysqli.php on line 498

Fatal error: Access to undeclared static property: JLoader::$classes in /home/yaeliq1965roz/public_html/temp/libraries/loader.php on line 195

Very new in Hika business. Trying to upload products and this is the error I got. Please help me! Thanks
:(

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 8 months ago #147693

Hi,

Allowed memory size of 67108864 bytes exhausted (tried to allocate 512 bytes)

The problem is not linked to HikaShop but to your PHP/server configuration.
Please increase your PHP memory limit in your web server (which is currently 64MB).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 157
  • Thank you received: 2
10 years 8 months ago #147846

I increased my PHP memory limit and there is still an error. I spoke with my server (godaddy) and they told me that there is a bug with my component. There is a page using 128 mb memory in loop all the time.
I tried to delete this product but got an error too and can'not delete it.
this is the page:
temp.yaeliq.com/fruits.html

and try to go into "anise"

Please help me with this.
thanks/

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 8 months ago #147864

Hi,

Could you do a screenshot of the options of your product so that we can see how you configured it ?
Did you modify any code in HikaShop ?

Please Log in or Create an account to join the conversation.

  • Posts: 157
  • Thank you received: 2
10 years 8 months ago #147891

Hey,

I just added 2 products and problems start. I do not modify anything in code or even in CSS. Nothing.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 157
  • Thank you received: 2
10 years 8 months ago #147913

If you want i can provide you enter to admin so you can check.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #147925

Hi,
The problem is probably coming from the fact that you have too much characteristics.
For example, if you have 3 characteristics with 10 values each, that's 10*10*10=1000 possibilities. That's already too much.
You should indeed transform some characteristics into custom fields ( www.hikashop.com/en/support/documentatio...p-field-listing.html ) or options ( www.hikashop.com/en/support/documentatio...ct-form.html#options ) so that it becomes more manageable for your server.

Characteristics should only be used when you want to change some of the information on the products (the stock, the price, the image, etc). For choices which do not affect any of that custom fields of the table "item" are the way to go.

Please Log in or Create an account to join the conversation.

  • Posts: 157
  • Thank you received: 2
10 years 8 months ago #147997

Yes you are right! I already got it. I replace the characteristics with options and the problem solved.
Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
10 years 7 months ago #150383

I have EXACTLY this same problem, except I already have options and no characteristics for the products themselves. (the options have)

I added my second product and suddenly POOF. Error 500.

[Tue Apr 01 01:04:26 2014] [warn] [client 84.80.63.27] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in ..libraries/joomla/language/latin_transliterate.php on line 156, referer: www.dampsmaken.nl/administrator/index.ph...roduct&task=edit&cid []=81
[Tue Apr 01 01:08:56 2014] [warn] [client 84.80.63.27] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in ..libraries/joomla/language/latin_transliterate.php on line 156, referer: www.dampsmaken.nl/administrator/index.ph...=product&filter_id=2


I can't delete the item, i can add other items and delete them, just not this one item. I have deleted its options, images, settings, and tekst but i cant save my changes anymore. im stuck with just this product not working and causing FATAL ERRORS.

I have 6 options, those options all have characteristics so they are grouped. My products themselves just have the options, no characteristics for themselves. Is this still a problem ? If so, i might need a refund ;(

Is there a way i can sanitise the database or something else i can do ? I think my db is messed up.

What does this latin_transliterate.php file do to cause such memory usage?

Bummed out.. stuck.. hoping for a helpful answer so i can continue building the site tomorrow..

~Trail.

Last edit: 10 years 7 months ago by Trail.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 7 months ago #150384

Hi,

Having 6 options is not a problem.

The transliteration system of Joomla is activated if your language supports it and that the unicode alias option of your joomla configuration is turned off. Turn that option on and it should not use it and thus you should not have that error message.

Regarding the memory limit, if it says64M in the error message, then it means that your 128M modification is not taken into account.
You would have to check that with your hosting company.

The following user(s) said Thank You: Trail

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
10 years 7 months ago #150510

Thanks for your reply.

I enabled unicode alias, and when i try to delete that faulty product i still get the 500 error but this message shows in error log;

[Tue Apr 01 20:39:09 2014] [warn] [client 84.80.63.27] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 88 bytes) ..libraries/joomla/database/database/mysql.php on line 712, referer: www.dampsmaken.nl/administrator/index.ph...ikashop&ctrl=product

Editing the php.ini to 128M results in:
[Tue Apr 01 21:11:00 2014] [warn] [client 84.80.63.27] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes) in ../libraries/joomla/database/database/mysql.php on line 712, referer: www.dampsmaken.nl/administrator/index.ph...=product&filter_id=2

Editing the php.ini to 256M results in:
[Tue Apr 01 21:13:52 2014] [warn] [client 84.80.63.27] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 6 bytes) in ../libraries/joomla/database/database/mysql.php on line 712, referer: www.dampsmaken.nl/administrator/index.ph...=product&filter_id=2

When saving this product it sais this:
[Tue Apr 01 21:21:02 2014] [warn] [client 84.80.63.27] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 70 bytes) in ../libraries/joomla/database/database.php on line 1411, referer: www.dampsmaken.nl/administrator/index.ph...roduct&task=edit&cid []=81

Always ERROR 500.

Let's not go beond 256M..

Personally i think that product (-the database entries) for this item are corrupt, because i can recreate the product, and save/delete it without problem and i can also delete other very similar products with the same options in the same category without these problems.

I must have done something to mess this particular product up..

Is there another way to delete this product and everything associated with it? I've got phpmyadmin installed but my mysql is rusty and i have no knowledge of the structure of the hikashop db :(

~Trail.

Last edit: 10 years 7 months ago by Trail.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 7 months ago #150530

Hi,

With more information about the product, it will be easier to understand why the save does not work correctly.
Maybe too much variants ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
10 years 7 months ago #150664

The product has 6 options, each with their variants.

The product itself has no variants.

Its the same kind of product as the other products, with the same 6 options.

I can RE-create the same product and everthing works.

I have created this product about 10 times on fresh installations on this same server without problems.

The product is some flavor of electronic sigarette, just like the other flavors I carry, people can have options for nicotine level, more or less, flavor, more or less sweetener, etc etc.. 6 options...

I want to create separate products for all flavors so I can add pics of the flavors.

So I have many of the same kind of product and they all work, except this one...

~Trail.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 7 months ago #150667

Then go in the menu System>Mass actions and click on the "new" button there. Then, add a "products column" filter on the "product_id" with the id of your faulty product and add an action "delete the element". Finally, click on the "process" button at the top.
Then, do the same but with the "product_parent_id" column on the filter instead.
That should remove all the traces of the product in HikaShop.

The following user(s) said Thank You: Trail

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
10 years 7 months ago #150674

This sounds promising :0

The mass action found 36K results! And deleted them ;)

I was sure this would have fixed it.. so I went and took a look but my item is still there..

Hmm how do I find the correct product id? When I hover my mouse over the item in backend it shows cid=81 isn't that the product id?

I can now probably delete the product by its product_code, but I don't want to miss out on deleting anything related to this product by doing that ?

So is product_id = cid?

Thanks,
Trail.

Last edit: 10 years 7 months ago by Trail.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 7 months ago #150685

Yes, the cid is the product_id. You can also see it in the last column of the products listing.
So you should have a filter on the product_id = 87 and that will remove the product.
You can also do it by the product_code, that won't change anything. But for the variants of the product, you can only delete them with the product_parent_id and using the same id as the main product because they all have a different product_code and a different product_id.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
10 years 7 months ago #150717

Nothing is actually deleted, or the content is automaticly recreated somehow as soon as i reload the page.

First it shows my selecting covers 36333 rows, then i delete them. then i reselect my selection and it says 36333 rows affected again. It isn't actually deleting them.

Thanks for your input,
Trail.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 7 months ago #150801

Did you click on the "process" button ?
Maybe you would like to provide a backend access so that we do it for you ?

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
10 years 7 months ago #150850

It displays the amount of affected rows but doesn't actually delete when i process.
Also tried setting a trigger on before create, and tried to make a new product but still no deleting.

I was actually processing the action.. without a trigger..

i think there's no other way but let you guys have a peek.. Where do i send login details to ?

The only item left is the faulty item. 'bananen noten brood'.

I know i could easily start over but i like to know what caused this and how to fix it myself in case it ever happens again further down the road..

Thanks,
Trail.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 7 months ago #150933

You can send it via our contact form:
www.hikashop.com/contact-us.html
Make sure that you give a link to this thread in your message.

The following user(s) said Thank You: Trail

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds
Powered by Kunena Forum