Allowed memory size of 33554432 bytes exhausted

Bug #346626 reported by Putera Emas
2
Affects Status Importance Assigned to Milestone
Wordpress Subdomains Plugin
Fix Released
Medium
Alex Stansfield

Bug Description

I got this error after my 13th manual subdomains creation. I solved it by editing Wordpress' "wp-settings.php" at line 13, increase from 32M to 64M. Do you think the script is using alot amount of memory?

Revision history for this message
Alex Stansfield (casualgenius) wrote :

How many posts do you have in the Category that caused the problem?

The memory error is caused when calling a wordpress function that fetches the post data for a category. I might need to do things differently to take into account categories with hundreds of large posts.

The function itself does get way more data than I require, but I couldn't find one that would give me just what I needed.

Originally I was just using my own SQL statement to grab the data. I may need to go back to doing it this way, but this is less than ideal.

Changed in wordpress-csd:
assignee: nobody → casualgenius
Revision history for this message
Putera Emas (joe-putraworks) wrote :

I have 10,515 Posts and 471 Categories. The SQL size now is more than 100mb.

Changed in wordpress-csd:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Alex Stansfield (casualgenius) wrote :

I've released a fix for this in 0.6.1.

You can choose to use a custom SQL query that uses less memory.

In the subdomains.php file change:
    define( 'WPS_CUSTOM_GET_POSTIDS', false);
  to
    define( 'WPS_CUSTOM_GET_POSTIDS', true);

Be sure to let me know if there are still issues with this.

Changed in wordpress-csd:
status: Confirmed → Fix Released
Revision history for this message
Putera Emas (joe-putraworks) wrote :

Thanks. The fix works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.