forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: skitnica on May 03, 2011, 06:59:01 am
-
Hello,
I've been using coppermine 1.4x, but a problem occurred - I was unable to create new categories. It didn't matter much, I could sill make my albums.
Now I moved to another host, started everything anew, decided maybe there was a problem with the database so didn't bother to import it to the new gallery. I tried 1.4x and 1.5x and I again can't create categories.
I just click to create new category and the next thing I see is blank page and nothing after that.
I don't know if it matters, but the gallery is in a sub-domain.
Where am I making a mistake?
-
Please post a link to your gallery and enable debug mode for everyone.
-
My gallery is here:
http://www.gallery.toni-dacheva.com/
and debug mode is on
-
Is this a new, empty gallery? If so I assume that you haven't installed any plugins or applied modifications. And you still get a blank page when you try to visit that page: http://www.gallery.toni-dacheva.com/catmgr.php ?
-
That's right. It is brand new, absolutely empty gallery. No plugins, no themes, brand new sub-domain & database.
Just the regular gallery files uploaded and the installed without a problem.
However, the register_globals is enabled on the server, I see the message all the time. Could this have any effect on me creating a category?
-
Coppermine works fine with register_globals enabled and also the domain name shouldn't matter. I guess it's a performance/memory issue. Please try if it works when you increase the PHP memory limit.
-
My memory limit is currently 64M. Isn't it usually enough?
-
Yes that should be enough. Do you get blank pages on other places in the gallery? Works everything else as expected?
-
Everything else is OK. I created an album, uploaded some photos, and all look fine. No blank pages, no errors, nothing wrong.
-
Try to replace the catmgr.php file on your server. Maybe it's corrupt.
-
Replaced it, still the same ;)
-
Okay now starts the annoying part: we have to find out why the blank page occurs by modifying the catmgr.php file. Try if it works if you comment out
get_subcat_data(0);
and/or
display_cat_list();
-
No, commented out the first line, nothing, then both, then only the second. Same result every time - blank page.
-
Try to play a little bit with that file. Remove/comment out more and more code until it works. For a start I'd try to comment out those functions additionally to the other two functions:
- fix_cat_table();
- form_alb_thumb();
- $lb = cat_list_box($current_category['parent'], $current_category['cid'], false);
- update_cat_order();
- ob_end_flush();
-
These are as well in the catmgr.php file, right?
Because my text editor and I may be going insane, but I can't find this code...
-
Sorry I accidentally opened the catmgr.php file of cpg1.4.x ::)
As suggested, remove code until the catmgr.php file prints something. You can also give me ftp access via PN if you want me to have a look at that file.
-
No need to bother youmore, just one last thing - I'll continue comment out code, but there is for sure some part of this code that MUST be there to actually do the job. So is there a piece of code I should not comment out?
-
The current goal is to find the cause for the blank screen. Of course all (or at least most) of the code is needed to let the category manager work properly.