Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Can't make category  (Read 4928 times)

0 Members and 1 Guest are viewing this topic.

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Can't make category
« 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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #1 on: May 03, 2011, 12:33:29 pm »

Please post a link to your gallery and enable debug mode for everyone.
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #2 on: May 03, 2011, 08:26:24 pm »

My gallery is here:
http://www.gallery.toni-dacheva.com/

and debug mode is on
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #3 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 ?
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #4 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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #5 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.
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #6 on: May 04, 2011, 06:13:59 pm »

My memory limit is currently 64M. Isn't it usually enough?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #7 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?
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #8 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #9 on: May 05, 2011, 08:43:47 pm »

Try to replace the catmgr.php file on your server. Maybe it's corrupt.
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #10 on: May 05, 2011, 11:56:40 pm »

Replaced it, still the same ;)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #11 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();
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #12 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.

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #13 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:
  • fix_cat_table();
  • form_alb_thumb();
  • $lb = cat_list_box($current_category['parent'], $current_category['cid'], false);
  • update_cat_order();
  • ob_end_flush();
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #14 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...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #15 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.
Logged

skitnica

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Can't make category
« Reply #16 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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Can't make category
« Reply #17 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 19 queries.