1
vinit
Server Relocation : Parse Errors :(
  • 2006/1/20 12:56

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


Hi i am trying to relocate my XOOPS application from one server to other and facing with this problem. Any guess

Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /home/user/public_html/html/kernel/object.php on line 528

This is what i have done.
1. created a db dump and loaded onto new server
2. created a tar.gz of html folder where XOOPS installtion is done on old server.
3. uploaded this tar.gz on new server and using cpanel unpacked it.
4. given chmod 757 to cache, templates_c and upload.
5. modifed the mainfile.php for new db data etc.

now when i visit mydomain.com/html i get the above error. Am i missing something while doing relocation.

this is what i see near line 528 in object.php

/**
* create a clone(copy) of the current object
*
* @access public
* @return object clone
*/
function &clone()
{
$class = get_class($this);
$clone = new $class();
foreach ($this->vars as $k => $v) {
$clone->assignVar($k, $v['value']);
}
// need this to notify the handler class that this is a newly created object
$clone->setNew();
return $clone;
}

Docs on the xoops.org says it might be due to file corruptions, but how to locate which file is corrupted if this is taken as truth

Thanks for support and your time.
.

2
Dave_L
Re: Server Relocation : Parse Errors :(
  • 2006/1/20 13:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I believe that error results from running an old version of XOOPS with PHP 5.

You didn't mention your versions of XOOPS and PHP.

3
vinit
Re: Server Relocation : Parse Errors :(
  • 2006/1/21 5:13

  • vinit

  • Just can't stay away

  • Posts: 530

  • Since: 2004/1/10


Hi Dave,

Yes PHP version is 5.0.5 and i guess XOOPS is 2.0.7.3 series.
Is there any way to get it fixed, as i need to go through it urgently.

On the second thought it would be tough call to upgrade entire site now. Got over 20 modules etc and there are dozens of hack here and there too. :(

Anys suggestions to overcome the problem in hand.

Thanks
.

4
Dave_L
Re: Server Relocation : Parse Errors :(
  • 2006/1/21 15:54

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I don't know of a quick fix, other than downgrading PHP to an older verion.

If I had that problem, here are the available resources I would use:

1) Search posts here for "T_CLONE".
2) See the documentation at php.net on migrating to PHP 5.
3) Compare your version of XOOPS with 2.0.13.2 and look for relevant changes.

Login

Who's Online

59 user(s) are online (30 user(s) are browsing Support Forums)


Members: 0


Guests: 59


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits