Syntax Error when overwriting TextArea.php

Usage of Control Panel, global settings, how to install new gadgets and plugins, user permissions, policies, anti-spam.

Syntax Error when overwriting TextArea.php

Postby Carnelion » Tue Nov 01, 2011 2:29 am

Hi,

I just overwrite this file TextArea.php from http://www.jaws-project.com/blog/show/j ... 5-repacked <
I get this error:
Parse error: syntax error, unexpected $end in /libraries/piwi/Widget/Bin/TextArea.php on line 209

What happened? Thanks
And yes I'm using the latest version of Jaws

EDIT: Managed to get it work by editing }1 into } in the end of the code, but the problem still there, it keeps removing the < code..
Help?
Similar problem here viewtopic.php?f=9&t=47827
Carnelion
 
Posts: 5
Joined: Sun May 03, 2009 5:00 am

Re: Syntax Error when overwriting TextArea.php

Postby afz » Tue Nov 01, 2011 6:26 am

Hi,
About textarea file, you true, and file was corrupted.

plz. test this patch maybe help you:
http://dev.jaws-project.com/changeset/12180
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am

Re: Syntax Error when overwriting TextArea.php

Postby Carnelion » Tue Nov 01, 2011 7:37 am

Ok, tried but it still not working..

Expected output :
test
Image

Expected output (HTML) :
Code: Select all
<p><strong>test</strong></p>

Code: Select all
<p><img src="http://forum.jaws-project.com/styles/prosilver/imageset/site_logo.gif" alt="" width="139" height="52" /></p>


What I get (Both published and preview)
Code: Select all
p>strong>test/strong>/p>

Code: Select all
p>lt;pgt;lt;img src="http://forum.jaws-project.com/styles/prosilver/imageset/site_logo.gif" alt="" width="139" height="52" /gt;lt;/pgt;/p>


Thank you
Carnelion
 
Posts: 5
Joined: Sun May 03, 2009 5:00 am

Re: Syntax Error when overwriting TextArea.php

Postby afz » Tue Nov 01, 2011 7:41 pm

it work fine for me.
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am

Re: Syntax Error when overwriting TextArea.php

Postby Carnelion » Wed Nov 02, 2011 5:05 am

Check PM, I pmed my site with id and password..

Thank you
Carnelion
 
Posts: 5
Joined: Sun May 03, 2009 5:00 am

Re: Syntax Error when overwriting TextArea.php

Postby afz » Wed Nov 02, 2011 2:48 pm

plz. change line 49 of file libraries\jpspan\JPSpan\Server\PostOffice.php to:
Code: Select all
    var $RequestEncoding = 'json';
afz
 
Posts: 694
Joined: Sat Apr 12, 2008 1:46 am


Return to Control Panel

Who is online

Users browsing this forum: No registered users and 4 guests

cron