coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: totoki on June 04, 2004, 08:35:15 PM

Title: ERROR !!!! Help me !!!!
Post by: totoki 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';
...
Title: Re: ERROR !!!! Help me !!!!
Post by: Casper 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.