[Rev 1.9.9] Global.php error

Status
Not open for further replies.

Benden

maging ang maganda mamatay
Jun 4, 2010
2,281
1,480
Hello Devbest users! I was going to try and create a theme for Rev CMS just for fun. Of course I need to install rev first and as I was doing so I ran into an error. Yes I have read all instructions and the error has nothing to do with them.

Error
Code:
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/smartbee/public_html/rev/global.php on line 22

Line 22 in Global.php
PHP:
use Revolution as Rev;

Full code in Global.php
PHP:
<?php
 
    // Special Functions
   
    function filter($var)
    {
        return mysql_real_escape_string(stripslashes(htmlspecialchars($var)));
    }
 
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
error_reporting(E_ALL ^ E_NOTICE);
 
define('A', 'app/');
define('I', 'interfaces/');
define('M', 'management/');
define('T', 'tpl/');
 
 
//REVOLUTION
 
use Revolution as Rev;
 
 
    //INTERFACES
   
        require_once A . I . 'interface.core.php';
       
        require_once A . I . 'interface.engine.php';
   
        require_once A . I . 'interface.users.php';
   
        require_once A . I . 'interface.template.php';
       
        //TPL
       
            require_once A . T . I . 'interface.forms.php';
           
            //HTML
           
                require_once A . T . I . 'interface.html.php';
               
            //CSS
               
                require_once A . T . I . 'interface.css.php';
               
            //JS
               
                require_once A . T . I . 'interface.js.php';
               
   
    //CLASSES
   
        //app
   
        require_once A . 'class.core.php';
       
        require_once A . 'class.engine.php';
       
        require_once A . 'class.users.php';
       
        require_once A . 'class.template.php';
       
        //MANAGEMENT
       
            require_once A . M . 'config.php';
           
            require_once A . M . 'recaptchalib.php';
               
        //TPL
       
            require_once A . T . 'class.forms.php';
           
            //HTML
               
                require_once A . T . 'class.html.php';
               
            //CSS
               
                require_once A . T . 'class.css.php';
               
            //JS
               
                require_once A . T . 'class.js.php';
       
       
    //OBJ
   
    $core = new Rev\core();
       
    $engine = new Rev\engine();   
       
    $users = new Rev\users();
       
    $template = new Rev\template();
       
    $template->form = new Rev\forms();
       
    $template->html = new Rev\html();
       
    $template->css = new Rev\css();
       
    $template->js = new Rev\js();
       
    //START   
   
    session_start();
   
    $engine->Initiate();
   
    $template->Initiate();
   
?>

All your help would be much appreciated.

Much thanks, Canadian
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
If the global.php is unchanged it might be somewhere else the error is from. I also hate that the errors dosen't come from the right files with Rev :/
 

Benden

maging ang maganda mamatay
Jun 4, 2010
2,281
1,480
Do you have any ideas on how to find this error? Also might my php version be a problem in anyway?

I have uploaded rev to
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
If you use PHP 5, no. But I can't see where the error should come from. Try to look all files you have changed in the past for typos etc.
 

Benden

maging ang maganda mamatay
Jun 4, 2010
2,281
1,480
Do I leave this as localhost? if I have a webhost?
PHP:
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host
 
Status
Not open for further replies.

Users who are viewing this thread

Top