Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 06:47 pm EST

Geeklog Forums

Can't create static pages in 1.5.2


Status: offline

greenteagod

Forum User
Junior
Registered: 04/08/07
Posts: 19
I'm trying to create a static page and get this error.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/super-cr/system/lib-webservices.php on line 520

I've tried uploading a fresh copy of the file, no luck.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm. Are you trying to create the static page from within Geeklog? Since that function should only be executed when you're using the webservice (AtomPub).

Also: Which PHP version are you on?

bye, Dirk
 Quote

Status: offline

greenteagod

Forum User
Junior
Registered: 04/08/07
Posts: 19
Is this a recent change? I've never used an AtomPub service and have created other static pages. Having a "Create New" link under the static pages makes little sense if this is the case.

My php version is 5.2.5
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
There's a bugfix in 1.5.2 that pulls in the lib-webservices.php to do a check. It seems to have something to do with that. Looking into it ...

bye, Dirk
 Quote

Status: offline

greenteagod

Forum User
Junior
Registered: 04/08/07
Posts: 19
Thanks Dirk,

I'll stay tuned for updates.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: greenteagod

My php version is 5.2.5


Hmm, are you sure? This is a bug, but I can only reproduce it on PHP 4 ...

Here's a quick fix:

- open plugins/staticpages/services.inc.php
- search for lib-webservices.php and remove the required_once line (in function service_submit_staticpages)
- search for WS_makeId and change the line where you find it to read
Text Formatted Code
$args['sp_id'] = COM_makeSid();


Need to find a better (and compatible) solution for the final 1.5.2 ...

bye, Dirk
 Quote

Status: offline

greenteagod

Forum User
Junior
Registered: 04/08/07
Posts: 19
Absolutely sure on the version, checked it just before I posted. I'll try the fix and let you know how it goes.

Just changed the line and am still getting the same error. Just checked the PHP version again to make 100% sure and it is definitely 5.2.5 at least that's what the control panel on my site says.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: greenteagod

Just changed the line and am still getting the same error.


There are two changes you need to make. See above.

bye, Dirk
 Quote

Status: offline

greenteagod

Forum User
Junior
Registered: 04/08/07
Posts: 19
Sorry I missed that first bit of info before, I was in a rush to get out the door.

The changes worked. Thanks Dirk.
 Quote

All times are EST. The time is now 06:47 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content