Fin
Fatal error on new install
  • Envoyé: 20.03.2005, 22:34
    Invité
    rang:
    1
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    06.03.05
    Messages:
    0
    I have a completly new install of Postnuke .75 and can not get phpcomic to work. I can get into the admin area and adjust the comics and add comics but when I add {phpcomic} to my main menu I get the following error:

    Code
    Fatal error: Cannot instantiate non-existent class: phpcomic in /homepages/22/d94423539/htdocs/modules/phpcomic/pnuser.php on line 219


    Please help as this is my favorite module
  • Envoyé: 20.03.2005, 23:05
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    10.05.08
    Messages:
    255
    Hello,
    apparently phpcomic is unable to include the class.phpComic.php file because just before the line causing the error there is
    Code
    include ("modules/phpcomic/class.phpComic.php");
    this is wierd !! So after verifying that this file is really on your server (a lot of people are uploading file with various software just to found one day that some files are missing, in my opinion a good ftp program is the best solution) you can try to replace this line with
    Code
    include ("class.phpComic.php");
    to see if it work.
  • Envoyé: 20.03.2005, 23:32
    Invité
    rang:
    1
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    06.03.05
    Messages:
    0
    it seems like for some reason I have a lot of files misnamed, they have lowercase letters where the code calls for uppercase. example, my file was class.phpcomic.php. I corrected that and then got an error on Snoopy.class.php because mine was named snoopy.class.php.

    I corrected both of those and now I am fine. Its strange because I downloaded the file on my webserver thru ssh using lynx and unzipped it on my webserver. so I never transfered from my computer to my webserver.

    Just redownloaded though on my computer and its fine. so I guess my webservers unzip program changed to all lowercase. thats no good.


    anyway, thanks for the very quick response in helping me get my most favorite postnuke module working icon_wink
  • Envoyé: 21.03.2005, 08:21
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    10.05.08
    Messages:
    255
    Hello,
    Happy that the problem get solved. I left this mixed case filename from the 1.02 version but I think this was a bad idea. Now I will choose all lowercase names for all the files in the modules I release, less problems icon_lol
  • Envoyé: 02.02.2007, 03:52
    Invité
    rang:
    1
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    06.03.05
    Messages:
    0
    I know this is a very old post but I am having the same problem. I get:
    PHP Fatal error: Class 'phpComic' not found in D:\www\modules\phpcomic\pnuser.php on line 219
    I checked the file names and their all fine. I also cheched the phpcomic directory under pntemp and it all seems fine to me. Im kind of at a loss as to how to make this work.
    Im using postnuke .764 with IIS. Please help if possible and thank you.
  • Envoyé: 10.02.2007, 13:46
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    10.05.08
    Messages:
    255
    Hello,
    Have you tried my previous solution ? Other than that and a filename not exactly the same I can think of no reason why the script is not able to find the file !
    vedrineHello,
    apparently phpcomic is unable to include the class.phpComic.php file because just before the line causing the error there is
    Code
    include ("modules/phpcomic/class.phpComic.php");
    this is wierd !! So after verifying that this file is really on your server (a lot of people are uploading file with various software just to found one day that some files are missing, in my opinion a good ftp program is the best solution) you can try to replace this line with
    Code
    include ("class.phpComic.php");
    to see if it work.
Réponse rapide
 
  • Options
Code:
Couleur de la police:  
Taille de la police: