Jump to content
brian_cee

Unable to Add New Category

Recommended Posts

I have 2.3.4.1 BS.

I only have one category with 200 items in it. If I attempt to add a new category the page breaks and it just shows this:

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 266240 bytes) in /store/admin/includes/functions/general.php on line 195

(This is line 195)
 if ($exclude != $categories['categories_id']) $category_tree_array[] = array('id' => $categories['categories_id'], 'text' => $spacing . $categories['categories_name']);

 

And on the shop side there is only:


Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 110592 bytes) in /store/includes/classes/category_tree.php on line 80

(This is line 80):

$result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level);

 

Has anyone else seen anything like this?

Share this post


Link to post
Share on other sites
Posted (edited)

you have a bad bit of code possibly a for loop or a dab redirect that causes a loop that is using up the memory

Edited by 241

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P


Support The Project
Documentation/Knowledgebase/Discussions
 

Share this post


Link to post
Share on other sites
11 hours ago, 241 said:

you have a bad bit of code possibly a for loop or a dab redirect that causes a loop that is using up the memory

Once I figure out what that could possibly mean, I plan on doing something about it. Did I point out that I am also extremely open to suggestions?

Because I am extremely open to suggestions.

Share this post


Link to post
Share on other sites

I would check the eroorlog on the providers control panel in this case. This should show some errors too?

 

Share this post


Link to post
Share on other sites
Posted (edited)

@brian_cee so is this now fixed with the autoincrement from your other thread

or is there still an issue with the /includes/modules/boxes/bm_categories.php

Edited by 241

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P


Support The Project
Documentation/Knowledgebase/Discussions
 

Share this post


Link to post
Share on other sites
20 minutes ago, 241 said:

@brian_cee so is this now fixed with the autoincrement from your other thread

or is there still an issue with the /includes/modules/boxes/bm_categories.php

Once I fixed the auto increment thing, I re-uploaded the newer version of the bm_categories and everything seems fine now, thanks again......

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×