Fatal error: Cannot instantiate non-existent class (SMF forum) Fatal error: Cannot instantiate non-existent class (SMF forum)
 

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]

Main Menu

Fatal error: Cannot instantiate non-existent class (SMF forum)

Started by sonic393, April 06, 2007, 01:32:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sonic393

Hi, i'm trying to get the cpmfetch to work together with the SMF forum. My forum and the gallery are both in the root of my server.

When i do a standalone test of the plugin, it works like a charm, producing the 4 thumbs like it's supposed to do.

When i want to intgrate this part into the BoardIndex.template.php file from SMF, just below the actual forum posts, but above the info center i get the following error :

Fatal error: Cannot instantiate non-existent class: cpm in /var/www/html/forum/Sources/Load.php(1726) : eval()'d code on line 234

The code i'm inserting :

   include_once("../../../gallery/cpmfetch/cpmfetch.php");
   $objCpm = new cpm('/gallery');
   $objCpm->cpm_viewLastAddedMedia (1,4);
   $objCpm->cpm_close();


It'is pointing to the load.php file from the SMF source directory, but i haven't got a clue why...

The line of code on line 1726 of load.php if it helps :

$file_found = file_exists($filename) && eval('?' . '>' . rtrim(file_get_contents($filename))) !== false;

I hope someone can help me here.. thanx !

Nibbler

Means the path is wrong. It should be the path as seen from Load.php so you have one ../ too many I think.

sonic393

same error, but i used a workaround with an auto resizing iframe that contains the code, that also get's the job done...

vuud

Quote from: sonic393 on April 06, 2007, 10:28:47 PM
same error, but i used a workaround with an auto resizing iframe that contains the code, that also get's the job done...

You can try the path from the index.php's location.

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco