coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: andreasass on March 03, 2005, 02:03:27 AM

Title: installation error - Failed opening required 'udb_base.inc.php'
Post by: andreasass on March 03, 2005, 02:03:27 AM
I get this error after running the install page -

Fatal error: main() [function.require]: Failed opening required 'udb_base.inc.php' (include_path='.:/usr/local/lib/php') in /home/ftpuser/asimpson/cpg/bridge/coppermine.inc.php on line 26

My web host runs in Safe Mode - Apache/2.0.52 (Unix) PHP/5.0.3. I have Chmod suggested folders to 777 as per documentation, I have also checked "define safe mode" is active in include file.

Not sure what else to check.

Any help would be greatly apprecaited.
Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: kegobeer on March 03, 2005, 02:17:14 AM
Are you sure you're running 1.3.x?  Looks like 1.4, which is still in alpha stage and has no support.
Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: andreasass on March 04, 2005, 01:10:51 PM
Quote from: kegobeer on March 03, 2005, 02:17:14 AM
Are you sure you're running 1.3.x?  Looks like 1.4, which is still in alpha stage and has no support.

Ahh.. yes, it seems it was 1.4. Sorry.

I have installed 1.3.2 now and still have errors. I can't get past the install page. I input the data (which is correct) and it just reloads the page with these errors -
Undefined index: PATH_TRANSLATED in /home/ftpuser/asimpson/cg/install.php on line 21

Notice: Undefined offset: -1 in /home/ftpuser/asimpson/cg/install.php on line 22

I have checked through PhpAdmin and it has not written any files to the database. At least with 1.4 it created records, although I couldn't get it to work!
Any advice would be appreaciated greatly!!



Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: Nibbler on March 04, 2005, 01:12:17 PM
You have to make some changes to your PHP setup if you use PHP5 with CPG 1.3.2 Please search th board for PHP5.
Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: andreasass on March 04, 2005, 01:20:04 PM
Quote from: Nibbler on March 04, 2005, 01:12:17 PM
You have to make some changes to your PHP setup if you use PHP5 with CPG 1.3.2 Please search th board for PHP5.

As I'm using a host so I have no control over how Php 5 is setup.  Does this mean I cannot run cpg in its present form?  (I had a quick read and that's what my understanding now is)
Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: Nibbler on March 04, 2005, 01:31:47 PM
You need long arrays enabled to use CPG 1.3.2 with PHP5, if your host does not have that set the best idea would be to wait for 1.4 to be released, but I cannot give you a date on that.
Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: kegobeer on March 04, 2005, 02:05:02 PM
You can always ask your host to enable long arrays for you.  It never hurts to ask.
Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: Joachim Müller on March 04, 2005, 02:40:58 PM
a decent webhost should have no problems with enabling this for you - in fact, it's even recommended to enable long arrays in the first place, to provide backwards compatibility.

Joachim
Title: Re: installation error - Failed opening required 'udb_base.inc.php'
Post by: andreasass on March 04, 2005, 11:27:05 PM
Quote from: GauGau on March 04, 2005, 02:40:58 PM
a decent webhost should have no problems with enabling this for you - in fact, it's even recommended to enable long arrays in the first place, to provide backwards compatibility.

Joachim

thank you all for your responses!

I will ask my host to enable long arrays if possible, if not I'll wait for 1.4.