AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: montgo on November 02, 2013, 10:16:27 AM

Title: Design/Content Failure to edit or add
Post by: montgo on November 02, 2013, 10:16:27 AM
Can I try once more to resolve this problem please?

The whole of Admin is functioning perfectly with the exception of Design/Content. It crashed as I was trying to add another page and has not functioned since. Current pages  are displayed correctly but both the Edit and New selections result in a blank page.

Previously, a fatal error occurred with either selection:

Allowed memory size of 67108864 bytes exhausted (tried to allocate 33205 bytes) in /home/e29jave/public_html/cart/core/lib/content_manager.php on line 492

I was advised to increase the php memory to 128m which I did but without any change to the result.

I tried replacing the following files with the originals:

cart/core/lib/content_manager.php
admin/controller/pages/design/content.php
admin/view/default/template/pages/design/content_form.tpl
admin/view/default/template/pages/design/content_layout.tpl
admin/view/default/template/pages/design/content_list.tpl

Now the error message has disappeared but leaves a blank screen instead. It remains impossible to either add a new page or edit an existing one.

I would appreciate some assistance in resolving this issue.  Thanks.
Title: Re: Design/Content Failure to edit or add
Post by: abantecart on November 02, 2013, 11:49:15 AM
What version of AbanteCart do you use?
Title: Re: Design/Content Failure to edit or add
Post by: montgo on November 03, 2013, 02:41:59 AM
V 1.1.7 html5
Title: Re: Design/Content Failure to edit or add
Post by: abolabo on November 04, 2013, 05:49:18 AM

could you send to me sql backup with 2 tables: contents and content_descriptions?
Title: Re: Design/Content Failure to edit or add
Post by: montgo on November 05, 2013, 02:28:15 AM
Requested files attached.
Title: Re: Design/Content Failure to edit or add
Post by: abolabo on November 12, 2013, 06:50:52 AM
sorry for delay.
i noted that you have different content_id for privacy in tables. Inside "content" table it's a "2", but in "content_description" it's a "5" :o
Can you describe how to replicate this data? i need steps with details.
Title: Re: Design/Content Failure to edit or add
Post by: montgo on November 12, 2013, 07:22:48 AM
Many thanks for the info and I see the discrepancy. "Privacy" was the file I was trying to edit when Content crashed so that must be another clue. I can see 3 files in Content in Admin now and they correspond exactly to the table entries in both content and content_description.

I know close to zero about databases so would you recommend I just delete both the Privacy entries in content and content_description to see if that fixes it?
Title: Re: Design/Content Failure to edit or add
Post by: abolabo on November 12, 2013, 07:38:43 AM
yes... delete or ..you can just update content_id in content_description table.
But question "how you did that?" is still open:)
Title: Re: Design/Content Failure to edit or add
Post by: montgo on November 12, 2013, 08:35:53 AM
Many thanks - deletion fixed it but sorry, I can't help with the 'why'. All I remember is trying to edit the 'privacy' file that already existed - it was clearly operator error :)
Title: Re: Design/Content Failure to edit or add
Post by: junkyard on January 17, 2014, 02:33:03 PM
Not sure it was "operator error". You can fix "Allowed memory size" errors with following fix from abantecart:
http://forum.abantecart.com/index.php/topic,980.msg5907.html#msg5907

But the subsequent mess that you got in tables "content" and "content_description" could be linked to another related bug:
http://forum.abantecart.com/index.php/topic,1616.0.html