Open GoogleCodeExporter opened 9 years ago
I am running 0.5.2 with a clean PDT-all-in-one install too with smartypdt
0.5.2. It
gives exactly the same error as described above. I installed it on ubuntu 7.10.
However, I just did a clean install on an XP box, and the error didn't show up
there. Maybe it's related to the installed jre..
On my ubuntu installation, I am using the sun-java6-jre package.
Original comment by johan.mu...@gmail.com
on 2 Jan 2008 at 7:34
I have the same error. I have new version of PDT 1.0.2 Stable Build:
S20071213-M1 and
smartypdt 0.5.2 + WIN XP SP2 (all updates) + Java 1.6.0_03
And error shows even if you put '{' as first char in tpl file!!!
Original comment by killer2...@gmail.com
on 18 Jan 2008 at 7:46
I have the same error. PDT 1.0.2 Stable Build: S20071213-M1 and
smartypdt 0.5.2 + WIN XP SP2 (all updates) + Java 1.6.0_03.
I recompiled JSONObject in plugin jar file, adding some debug information
line 178:
if (x.nextClean() != '{')
{
throw x.syntaxError("A JSONObject text must begin with '{' JSONTokener is: ***" + x.toString() + "*** ||| ");
}
Now i get this error:
"A JSONObject text must begin with '{' JSONTokener is: *** at character 1 of
Status: 404*** ||| at character 1 of Status: 404"
Means something? Any help here?
Thanks, i keep trying debugging this error.
Original comment by inaki...@gmail.com
on 11 Mar 2008 at 4:25
Same Error on Eclipse 3.3.0, PDT 1.0.2 Stable, smartypdt 0.5.2, Windows Vista
SP1
Original comment by sou...@gmail.com
on 28 Mar 2008 at 7:33
Got same problem here, spend two hours trying to get it working and finaly got
it
running on notebook.
The problem seems to be new version of JRE 6, on JRE 5 it's working fine. Sadly
i
cannot downgrade to 5 so i home to get problem fixed.
Original comment by Marek.Ba...@gmail.com
on 21 Apr 2008 at 12:09
OS: Windows Vista SP1
Eclipse 3.3.2 pdt All-in-one
Zend debugger
JRE: last stable version from java.com.
I create file default.html.tpl and see next error message:
A JSONObject text must begin with '{' at character 1 of X-Powered-By: Severity
and
Description: PHP/4.4.7dev.cms.com/application/cms.com/www/templates/page
Path: default.html.tpl
Location: line 1
Please Help! ;)
Original comment by anton.danilchenko
on 21 Apr 2008 at 1:36
same prob winxp jre6
Original comment by ben.kel...@gmail.com
on 7 May 2008 at 3:15
downgraded to jre5 fixed the issue
Original comment by ben.kel...@gmail.com
on 8 May 2008 at 2:46
I'm using Java 5 on Ubuntu Feisty and still got the problem.
Just upgraded to SmartyPDT 5.4 and still the same.
Original comment by seiti.ya...@gmail.com
on 14 May 2008 at 2:30
same problem here.
Windows 2003 R2
jre 6
Original comment by pru...@gmail.com
on 27 May 2008 at 10:54
Looks like the php.exe not in cli mode, and returns http headers too.
Original comment by polonk...@gmail.com
on 25 Jun 2008 at 10:33
So the problem is that the PHP in CGI mode instead of CLI, this means, that the
PHP
will put HTTP headers before any content which the PHP script generate, and in
this
way, the php script in the plugin will return invalid JSON object.
The solution:
U can switch the default PHP executable (used by plugins in eclipse) by go to
Window / Preferences, on the left tree find PHP / Debug, on the right panel
search
for Default settings, and select a CLI type PHP executable. In my case this is
PHP
5.2.5 (CLI). Of course this Smarty PDT plugin needs Zend Debugger, and the
default
PHP Debugger is Zend Debugger.
After this, in the left tree u will have to search for PHP / PHP Executables,
and on
the right panel a CLI type of PHP, and after that click on the "Set Default"
button.
After these settings mod it have to be working.
Maybe this is a feature request for the developers of this plugin, to handle
this
situation. If PHP in CGI mode u can cut the header and content part away at the
first empty line. The content is after that empty line.
I hope this will help many peoples.
Original comment by polonk...@gmail.com
on 25 Jun 2008 at 10:47
Linux-gtk-3.3.3
pdt-1.0.3
smarty_0.5.5
I get this only after saving files with 0.5.5, files saved with 0.5.4 +
pdt-1.0.2 are
still ok even in 0.5.5.
Original comment by non...@tele2.se
on 16 Jul 2008 at 12:58
Attachments:
It doesn't solve my problem after I set it to PHP 5.2.5 (CLI). Anyone have
solution
for this?
Original comment by chambers...@gmail.com
on 26 Dec 2008 at 1:44
I worked for me, I had to re-analyze my code before it fixed it though. If you
haven't done so try that.
Original comment by alanmc...@gmail.com
on 3 Jan 2009 at 11:39
You need to pass the response to an JSONArray instead of JSONObject.
JSONArray jsonArry = JSONArray.fromObject(response);
and then iterate the array for the specific elements.
Original comment by anitha.m...@gmail.com
on 14 Sep 2010 at 9:35
Original issue reported on code.google.com by
mpoziem...@gmail.com
on 20 Dec 2007 at 4:48