Jump to content

Recommended Posts

Here is the code:

 

<?php
if (!defined('INCLUDE_GUARD'))
{
header("Location: /errors/forbidden");
return;
}

include_once("incs/cls/DatabaseManager.class.php");
include_once("incs/cls/VariantTemplate.class.php");

class Core
{
private $_logger;
private $_self_test_results;
private $_config;
private $_dbmgr;
private $_vtemp;

public __construct()                     // this is line 19
{
	$this->setupLogger();
	$this->_self_test_results = array();
	$this->_self_test_results['missing'] = array();
	$this->_self_test_results['failed'] = array();
	$this->_config = array();
	$this->_dbmgr = null;
	$this->_vtemp = null;
	$this->selfTest();
}

 

Here is the error I've been receiving.

 

Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in /home/ditecha1/public_html/slick/incs/cls/SlickCMSCore.class.php on line 19

 

I am finding this error extremely weird, my host uses PHP 5.2.14. I was setting the private variables directly (without the assistance of the constructor), but I removed this and had the constructor set basic values to start with to see if this was the issue, but it wasn't.  I've tried commenting out the include_once lines, since they are also in development I thought maybe an error was being carried over in to this file as the includes were happening, but still no change in the error message at all.

 

Any help would be greatly appreciated!

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.