coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: modelsfree on January 18, 2004, 06:10:16 PM

Title: Fatal error (help me please)
Post by: modelsfree on January 18, 2004, 06:10:16 PM
I have this problem
Fatal error: Call to undefined function: theme_display_album_list_cat() in /home/modelsfr/public_html/db/index.php on line 493

what happens?

Tnx in advance!
Title: Fatal error (help me please)
Post by: Casper on January 18, 2004, 06:58:17 PM
Have you modified your index.php.  Line 493 should read;
theme_display_album_list_cat($alb_list, $nbAlb, $cat, $PAGE, $totalPages);

Ceck and see if yours on the server is the same as this.
Title: Fatal error (help me please)
Post by: Joachim Müller on January 18, 2004, 10:17:59 PM
I rather guess the theme has been over-modified. No use to look into this any further unless modelsfree gives us a link...

GauGau
Title: Fatal error (help me please)
Post by: modelsfree on January 19, 2004, 04:03:36 AM
Quote from: "casper"Have you modified your index.php.  Line 493 should read;
theme_display_album_list_cat($alb_list, $nbAlb, $cat, $PAGE, $totalPages);

Ceck and see if yours on the server is the same as this.

Yes, is the same.

The link of my site is http://www.modelsfree.com/db
Title: Fatal error (help me please)
Post by: moorey on January 19, 2004, 04:19:41 AM
Umm have you installed CPG?

http://www.modelsfree.com/db/install.php
QuoteThe 'include' directory (located in the directory where you uploaded Coppermine) should be writable in order to save your configuration. Use your FTP program to change its mode to 777.
Title: Fatal error (help me please)
Post by: Joachim Müller on January 19, 2004, 06:59:55 AM
Quotehttp://www.modelsfree.com/db/include/install.lock
Not Found
The requested URL /db/include/install.lock was not found on this server.
Moorey's right - you probably didn't install coppermine. Read the readme that comes with coppermine!

GauGau
Title: Fatal error (help me please)
Post by: modelsfree on January 19, 2004, 12:54:01 PM
Quote from: "gaugau"
Quotehttp://www.modelsfree.com/db/include/install.lock
Not Found
The requested URL /db/include/install.lock was not found on this server.
Moorey's right - you probably didn't install coppermine. Read the readme that comes with coppermine!

GauGau
I have upgraded from the 1.0 version following the instruction. During the upgrade has no error occoured.
Title: Fatal error (help me please)
Post by: moorey on January 20, 2004, 05:05:49 AM
Quote from: "modelsfree"I have upgraded from the 1.0 version following the instruction. During the upgrade has no error occoured.

Ok - big jump for an upgrade - I've no experience with 1.0 - 1.2 upgrades. You could, for a start change the cpg/include folder permission to 777.
Title: Fatal error (help me please)
Post by: modelsfree on January 22, 2004, 11:49:44 AM
Quote from: "moorey"
Quote from: "modelsfree"I have upgraded from the 1.0 version following the instruction. During the upgrade has no error occoured.

Ok - big jump for an upgrade - I've no experience with 1.0 - 1.2 upgrades. You could, for a start change the cpg/include folder permission to 777.
The permission of cpg/include folder are on 777 but not works.
Title: Fatal error (help me please)
Post by: Casper on January 22, 2004, 03:42:04 PM
Hi,

I've had a look at your site, and changed to different themes to see what happens.  They all get similar errors, calls to undefined functions, but the one constant I can see is this;

QuoteNotice: Undefined index: aid in /home2/modelsfr/public_html/db/include/functions.inc.php on line 1003

Line 1003 of include/fuctions.inc.php should read;
$thumb_list[$i]['aid'] = $row['aid'];

Try downloading a new copy of the fuctions.in.php and changing it on your site.
Title: Fatal error (help me please)
Post by: modelsfree on January 30, 2004, 03:46:06 PM
I've tried to change the theme directly within PhpMyAdmin and this time something has appeared!
The currently chosen theme is "hardwired" because it's the only one that produces less errors and perhaps this way one can figure the problem out.

I've got the debug mode unabled and varoius errors are shown on the page, one among them is "Notice: Undefined variable: tabs in..." and it stands at the beginning of each category.

What makes me scratch my head is that on the first page appear almost all the categories instead of the textual list and the images recently submitted as it used to be when the site was functioning well.

Hope that, having now more elements shown up for us to understand where the problem stands, someone will be able to help me to get the CPG running smoothly.

Thanx a lot in advance for any tip!  :D
Title: Fatal error (help me please)
Post by: Casper on January 30, 2004, 05:04:02 PM
OK, you have lots of notices, but everything seems to be working.

Try switching debug mode off, and let us know exactly what is not doing what you want, and any error messages you get.  I didn't get any.