forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: donnoman on June 27, 2005, 02:23:53 am

Title: Fatal error: Call to a member function authenticate() on a non-object on PHP5
Post by: donnoman on June 27, 2005, 02:23:53 am
I had just completed a PHP5 upgrade on my development server and I got this error.

I had already enabled long arrays so that wasn't the problem.

The system output the entire contents of coppermine.inc.php then spit out this error.
Code: [Select]
Fatal error: Call to a member function authenticate() on a non-object in c:\Inetpub\wwwroot\devel\include\init.inc.php on line 263

I found that coppermine.inc.php didn't have a "php" in it's starting processor directive.

Code: [Select]
<?
/*************************
  Coppermine Photo Gallery
  ************************

changing to
Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************

Solved the problem.

fix committed.