Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

PHP-error after transferring nuB-DB to a server

Post Reply
bernhard
Posts: 1
Joined: Wed Apr 13, 2011 5:31 pm

PHP-error after transferring nuB-DB to a server

Unread post by bernhard »

Hi
I created a database with nuBuilder on XAMPP. Everything was working fine. But now I transferred it on a server and get stuck.
After entering username and password I get this error message:

PHP Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in D:\xxx\xxx\xxxx\xxx\productionnu2\common.php on line 372

Any ideas what could be missing on the server?
Unfortunately I only have access to my folder on this server.

thanks
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: PHP-error after transferring nuB-DB to a server

Unread post by admin »

It might be an idea to run

Code: Select all

<?php

 phpinfo();

?>

in a php file to check your version and the server version.

the error you have suggests the server version can't handle the syntax of a class.

Code: Select all


class sqlString{

    public  $from         = '';
    public  $where        = '';

its not expecting the word public

Steven

.
Post Reply