Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unknown parse error in configuration.php


Guest

Recommended Posts

Posted

Hi guys,

 

Was busy adding extra features to my site, and somewhere along the line, made a mistake within my admin section. The error i'm getting is as follows:

 

Parse error: parse error in /home/enigmatk/public_html/shop/admin/configuration.php(124) : eval()'d code on line 1

 

I've cleared parse errors before and know that the ' usually defines the error, but for the life of me i'm missing summin here lol. I know the error is here somewhere ....

 

<?php

/*

$Id: configuration.php,v 1.43 2003/06/29 22:50:51 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 

if (tep_not_null($action)) {

switch ($action) {

case 'save':

$configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']);

$cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);

 

 

Somewhere in there, think i might of delted a bracket or summin. Any response to my idiotic mistake would be appreciated.

 

Many thanks.

Posted

I've only pasted part of the code here. I have in the meantime found the problem. It was with the "contribution" that I opted to include in the package, LUCKILY i had a backup and restored :)

 

Thanks for response. Important lesson - BACKUP ! lol

 

Cheers

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...