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

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

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