Advanced search  

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

Pages: [1]   Go Down

Author Topic: ERROR !!!! Help me !!!!  (Read 2173 times)

0 Members and 1 Guest are viewing this topic.

totoki

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
ERROR !!!! Help me !!!!
« on: June 04, 2004, 08:35:15 pm »

I get an error everytime i want to call the install.php


Parse error: parse error in /srv/www/htdocs/web37/html/photo/install.php on line 430

using confixx... apache1.3 ........

the part in the install.php is quite weird:

...

// ------------------------- SQL QUERIES TO CREATE TABLES ------------------ //
function create_tables()
{
    global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $errors;

    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    $gallery_dir = strtr(dirname($PHP_SELF), '\\', '/');
    $gallery_url_prefix = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $gallery_dir . (substr($gallery_dir, -1) == '/' ? '' : '/');

    $db_schema = 'sql/schema.sql';
    $sql_query = fread(fopen($db_schema, 'r'), filesize($db_schema));

reate_tables()
<- this is line 430. the line where my error is caused!!!!!
    global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $errors;

    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    $gallery_dir = strtr(dirname($PHP_SELF), '\\', '/');
    $gallery_url_prefix = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $gallery_dir . (substr($gallery_dir, -1) == '/' ? '' : '/');

    $db_schema = 'sql/schema.sql';
 ...
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: ERROR !!!! Help me !!!!
« Reply #1 on: June 04, 2004, 08:47:38 pm »

It looks like your file is corrupt.  It also looks like the 1.3beta4 version, which is out of date, and unsupported.
It is not recommended you install this version.  Wait just a couple more days for the stable 1.3 release, or change to version 1.2.1.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 18 queries.