[SOLVED wrong Nuke] Fatal error: [SOLVED wrong Nuke] Fatal error:
 

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

[SOLVED wrong Nuke] Fatal error:

Started by Distl, November 08, 2003, 08:54:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Distl

Hi,

I get this error after update from 1.1

Call to a member function on a non-object in /home/www/html/modules/coppermine/index.php on line 31

Line 31:

$value = $db->sql_fetchrow($db->sql_query($sql));

Regards

DJMaze

There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Distl


DJMaze

Did you make any changes like adding modules or blocks.

Also do a search in all files for: trigger_error(
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Distl

I didnt make any changes in any file.
CPG 1.1 worked fine until I updated it to the 1.2
This error is happen in every admin link.

In CPG Batch Add Pics:

Fatal error: Call to a member function on a non-object in /home/www/html/modules/coppermine/searchnew.php on line 30

In CPG Comment Mgr:

Fatal error: Call to a member function on a non-object in /home/www/html/modules/coppermine/reviewcom.php on line 30


And so on.

I couldnt find any line with trigger_error

DJMaze

Did you add any bug/security fixes from a website like nukecops.com or nukefixes.com ?
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Distl

Quote from: "DJMaze"Did you add any bug/security fixes from a website like nukecops.com or nukefixes.com ?

No. I wonder why Version 1.1 runs stable without any errors.

DJMaze

Open modules/coppermine/index.php
and replace the line: require_once("mainfile.php") intodefine('inside_mod', 1);
$inside_mod = 1;
require_once("mainfile.php");
echo "DB is a ". $db. "<BR>\n";

Now the top of the page should say: "DB is a object"
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

DJMaze

There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Distl


DJMaze

change:define('inside_mod', 1);
$inside_mod = 1;
require_once("mainfile.php");
echo "DB is a ". $db. "<BR>\n";

into:require_once("mainfile.php");
global $db;
echo "DB is a ". $db. "<BR>\n";

also try:
require_once("mainfile.php");

include('modules/'.$name.'/include/config.inc.php');
$sql = "SELECT value FROM ".$cpg_prefix."config WHERE name='nice_titles'";
$value = sql_fetch_row(sql_query($sql, $dbi), $dbi);
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Distl


DJMaze

Ok now i've lost it and nobody else has the problem so please post all info that is described in this topic:

http://forum.coppermine-gallery.net/index.php?topic=1440
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

DJMaze

Distl you've found out that you are not using phpNuke 6.5 or up ?

Else place a link to your gallery in here.
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

Distl

Yes sorry I am using 6.0 and it wont work with that version.

DJMaze

Here's a sneaky test version that will also work in Nuke 6.0.

This is NOT finnished and contains bugs http://www.mp3tunes.nl/coppermine/coppermine.zip
Overwrite your coppermine 1.2 install and run these in phpMyAdmin:

UPDATE nuke_users SET user_group_cp='3' WHERE uid='-1';
UPDATE nuke_users SET user_group_cp='3' WHERE uid='1';
UPDATE nuke_users SET user_group_cp='1' WHERE uid='2';

When you removed your install DON'T TRY THIS.

If you gonna try it, please post all bugs in this topic.
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0