cannot edit category cannot edit category
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

cannot edit category

Started by Bob42, December 15, 2007, 06:20:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bob42

I'm trying to edit one of my categories, but whenever I click on the edit icon, I am brought to a blank white page.  The strange thing is that this doesn't happen with any of the other categories.  Only this one here.  I've uploaded a bunch of pictures into this category already, so I don't want to have to delete it unless I truly have to.  All I want to do is add in a description into the category.  What can I do to get rid of that blank white page and be able to edit the category?

Joachim Müller

Post a link to your gallery for a start.

Bob42

Here: http://gallery.pokenightmare.com
It's the Orange League category that I'm having problems with.

Joachim Müller

Make sure that you have no whitespace in your files. In fact, you should perform an upgrade (even though're on the most recent stable version cpg1.4.14), overwriting all files on your server as suggested in the documentation. Make sure to use the proper FTP mode and that your FTP is set up to overwrite existing files.

Bob42

I performed a complete upgrade by overwriting the files.  versioncheck.php states that everything is okay, aside from the few folders that were left writable.  Still, I get the same thing.  When I click on the edit icon for one of the categories, a blank white page shows.

Joachim Müller

Send me a PM that contains a link to this thread and an admin account for you site please.

Joachim Müller

Hm, that's indeed strange. I had a look with the admin account you PMed me, and I can replicate your issue: there are some categories that trigger a blank screen, while others display as expected in the category manager. This is theme-independant. Could you take a dump of the categories table using phpMyAdmin and paste that into your next posting?

Bob42

Yes, here you go:

-- phpMyAdmin SQL Dump
-- version 2.10.0.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 20, 2007 at 05:53 AM
-- Server version: 4.1.22
-- PHP Version: 4.4.4

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `pokethi1_gallery`
--

-- --------------------------------------------------------

--
-- Table structure for table `cpg1411_categories`
--

CREATE TABLE `cpg1411_categories` (
  `cid` int(11) NOT NULL auto_increment,
  `owner_id` int(11) NOT NULL default '0',
  `name` varchar(255) NOT NULL default '',
  `description` text NOT NULL,
  `pos` int(11) NOT NULL default '0',
  `parent` int(11) NOT NULL default '0',
  `thumb` int(11) NOT NULL default '0',
  PRIMARY KEY  (`cid`),
  KEY `cat_parent` (`parent`),
  KEY `cat_pos` (`pos`),
  KEY `cat_owner_id` (`owner_id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COMMENT='Used to store categories' AUTO_INCREMENT=16 ;

--
-- Dumping data for table `cpg1411_categories`
--

INSERT INTO `cpg1411_categories` VALUES (1, 0, 'User galleries', 'This category contains albums that belong to Coppermine users.', 2, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (2, 0, 'Indigo League', 'Episode pictures for Indigo League episodes.', 0, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (3, 0, 'Orange League', '', 1, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (4, 0, 'Johto Journeys', 'Episode pictures for Johto Journeys episodes.', 3, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (5, 0, 'Johto League Champions', 'Episode pictures for Johto League Champions episodes.', 4, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (6, 0, 'Master Quest', 'Episode pictures for Master Quest episodes.', 5, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (7, 0, 'Advanced', 'Episode pictures for Pokemon Advanced episodes.', 6, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (8, 0, 'Advanced Challenge', 'Episode pictures for Advanced Challenge episodes.', 7, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (9, 0, 'Advanced Battle', 'Episode pictures for Advanced Battle episodes.', 8, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (10, 0, 'Battle Frontier', 'Episode pictures for Battle Frontier episodes.', 9, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (11, 0, 'Sinnoh', 'Episode pictures for Sinnoh episodes.', 10, 0, 0);
INSERT INTO `cpg1411_categories` VALUES (12, 0, 'Chronicles', 'Episode pictures for Pokemon Chronicles episodes.', 11, 0, 0);

Nibbler

Probably caused by the category thumb selection box. There are a lot of files in albums within that category. Look for

form_alb_thumb();

in catmgr.php and comment it out:

//form_alb_thumb();