Jump to content

Resolved - Parse error ini.inc.php on line 29


bkessler91

Recommended Posts

Please open that file for editing and copy/paste in your reply the group of lines from lines 25-32, which should be:

// This ensures that everyone has the correct php.ini options running
if (PHP_5_3) {
    ini_set('register_globals', false);        // Attempt to disable regster_globals for security
    ini_set('register_long_arrays', false);    // Disable old-school long arrays (i.e. HTTP_*_VARS)
    ini_set('magic_quotes_gpc', false);        // Turn off magic quotes
    ini_set('magic_quotes_runtime', false);
}
ini_set('short_open_tag', false);            // Disable '<?' style php short tags for xml happiness

The error is typically caused by a missing semi-colon at the end of a statement (but before the // comment indicator), or a missing closing brace.
 

Link to comment
Share on other sites

The only thing in the ini.inc.php file is

 

 

<?php
/*
+--------------------------------------------------------------------------
|   CubeCart 5
|    $Date: 2010-06-04 14:51:49 +0100 (Fri, 04 Jun 2010) $
|   ========================================
|    CubeCart is a registered trade mark of Devellion Limited
|   Copyright Devellion Limited 2006. All rights reserved.
|    License Type: CubeCart is NOT Open Source Software and limitations apply
|   Licence Info: http://www.cubecart.com/site/faq/license.php
+--------------------------------------------------------------------------
*/

// I'll be honest, you probably shouldn't tinker with anything in here, all it does is ensure everyone has the same ini settings
// If you really must customise anything, create a file called ini-custom.inc.php and put your changes in there

//These are in case something goes wrong before we get to debug
ini_set('display_errors', true);
error_reporting(E_ALL ^ E_NOTICE);

define('PHP_5_3', version_compare(PHP_VERSION, '5.3.0', '>='));

/************* CUSTOMISED PHP.INI SETTINGS *************/

// This ensures that everyone has the correct php.ini options running
if (PHP_5_3) {
    ini_set('register_globals', false);
    ini_set('register_long_arrays', false);
Link to comment
Share on other sites

The only thing in the ini.inc.php file is

 

 

<?php

/*

+--------------------------------------------------------------------------

|   CubeCart 5

|    $Date: 2010-06-04 14:51:49 +0100 (Fri, 04 Jun 2010) $

|   ========================================

|    CubeCart is a registered trade mark of Devellion Limited

|   Copyright Devellion Limited 2006. All rights reserved.

|    License Type: CubeCart is NOT Open Source Software and limitations apply

|   Licence Info: http://www.cubecart.com/site/faq/license.php

+--------------------------------------------------------------------------

*/

// I'll be honest, you probably shouldn't tinker with anything in here, all it does is ensure everyone has the same ini settings

// If you really must customise anything, create a file called ini-custom.inc.php and put your changes in there

//These are in case something goes wrong before we get to debug

ini_set('display_errors', true);

error_reporting(E_ALL ^ E_NOTICE);

define('PHP_5_3', version_compare(PHP_VERSION, '5.3.0', '>='));

/************* CUSTOMISED PHP.INI SETTINGS *************/

// This ensures that everyone has the correct php.ini options running

if (PHP_5_3) {

    ini_set('register_globals', false);

    ini_set('register_long_arrays', false);

 

Those are lines 1 thru 29... the only lines in the file

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...