Advanced search  

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

Pages: [1]   Go Down

Author Topic: [SOLVED wrong Nuke] Fatal error:  (Read 10905 times)

0 Members and 1 Guest are viewing this topic.

Distl

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
[SOLVED wrong Nuke] Fatal error:
« on: November 08, 2003, 08:54:20 pm »

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
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #1 on: November 09, 2003, 12:17:23 am »

phpNuke 6.5 or up ?
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
[SOLVED wrong Nuke] Fatal error:
« Reply #2 on: November 09, 2003, 12:23:30 am »

Yes phpNuke 6.5
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #3 on: November 09, 2003, 12:44:56 am »

Did you make any changes like adding modules or blocks.

Also do a search in all files for: trigger_error(
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
[SOLVED wrong Nuke] Fatal error:
« Reply #4 on: November 09, 2003, 10:08:30 am »

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
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #5 on: November 09, 2003, 06:03:39 pm »

Did you add any bug/security fixes from a website like nukecops.com or nukefixes.com ?
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
[SOLVED wrong Nuke] Fatal error:
« Reply #6 on: November 09, 2003, 06:09:13 pm »

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.
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #7 on: November 09, 2003, 06:21:25 pm »

Open modules/coppermine/index.php
and replace the line: require_once("mainfile.php") into
Code: [Select]
define('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"
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #8 on: November 09, 2003, 08:26:58 pm »

REMOVE
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
[SOLVED wrong Nuke] Fatal error:
« Reply #9 on: November 10, 2003, 09:47:00 am »

"DB is a" comes out.
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #10 on: November 10, 2003, 02:55:13 pm »

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

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

also try:
Code: [Select]

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);
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
[SOLVED wrong Nuke] Fatal error:
« Reply #11 on: November 10, 2003, 05:33:25 pm »

No Both of them wont work. Sorry.
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #12 on: November 10, 2003, 06:30:30 pm »

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
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #13 on: November 12, 2003, 01:20:38 am »

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

Else place a link to your gallery in here.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
[SOLVED wrong Nuke] Fatal error:
« Reply #14 on: November 12, 2003, 09:01:44 am »

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

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED wrong Nuke] Fatal error:
« Reply #15 on: November 12, 2003, 11:50:59 am »

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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.