forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: skitnica on May 03, 2011, 06:59:01 am

Title: Can't make category
Post 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?
Title: Re: Can't make category
Post by: Αndré on May 03, 2011, 12:33:29 pm
Please post a link to your gallery and enable debug mode for everyone.
Title: Re: Can't make category
Post by: skitnica on May 03, 2011, 08:26:24 pm
My gallery is here:
http://www.gallery.toni-dacheva.com/

and debug mode is on
Title: Re: Can't make category
Post by: Αndré on May 03, 2011, 10:04:55 pm
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 ?
Title: Re: Can't make category
Post by: skitnica on May 03, 2011, 10:22:49 pm
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?
Title: Re: Can't make category
Post by: Αndré on May 04, 2011, 09:19:08 am
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.
Title: Re: Can't make category
Post by: skitnica on May 04, 2011, 06:13:59 pm
My memory limit is currently 64M. Isn't it usually enough?
Title: Re: Can't make category
Post by: Αndré on May 05, 2011, 12:34:47 pm
Yes that should be enough. Do you get blank pages on other places in the gallery? Works everything else as expected?
Title: Re: Can't make category
Post by: skitnica on May 05, 2011, 06:40:46 pm
Everything else is OK. I created an album, uploaded some photos, and all look fine. No blank pages, no errors, nothing wrong.
Title: Re: Can't make category
Post by: Αndré on May 05, 2011, 08:43:47 pm
Try to replace the catmgr.php file on your server. Maybe it's corrupt.
Title: Re: Can't make category
Post by: skitnica on May 05, 2011, 11:56:40 pm
Replaced it, still the same ;)
Title: Re: Can't make category
Post by: Αndré on May 06, 2011, 09:45:12 am
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
Code: [Select]
get_subcat_data(0);and/or
Code: [Select]
display_cat_list();
Title: Re: Can't make category
Post by: skitnica on May 06, 2011, 10:12:48 am
No, commented out the first line, nothing, then both, then only the second. Same result every time - blank page.

Title: Re: Can't make category
Post by: Αndré on May 06, 2011, 10:35:29 am
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:
Title: Re: Can't make category
Post by: skitnica on May 06, 2011, 11:33:26 am
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...
Title: Re: Can't make category
Post by: Αndré on May 06, 2011, 02:43:42 pm
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.
Title: Re: Can't make category
Post by: skitnica on May 06, 2011, 03:46:50 pm
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?
Title: Re: Can't make category
Post by: Αndré on May 06, 2011, 04:09:00 pm
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.