This topic is locked
[SOLVED]

  File Upload Error

10/31/2012 7:06:09 AM
PHPRunner General questions
B
bree author

I currently using PHPRUNNER 6.2,

i have a form for user able to upload picture, but everytime i try to upload the file, the error messages appear : "SyntaxError: JSON.parse"

Im not too familiar with javascript and had no clue to solve this issue, i try to clear my browser cache and cookies, i also set the "LimitRequestFieldSize 32760" on apache config, but the problem still there.


any suggests?
thanks.

Admin 10/31/2012

Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program. We also need to have the sample file that gives you this error.

B
bree author 10/31/2012



Post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program. We also need to have the sample file that gives you this error.


Okey Sergey,

the sample application is already uploaded..
thanks for your great support.

Admin 10/31/2012

Make sure you have opened a ticket providing all required info.

B
bree author 11/2/2012



Make sure you have opened a ticket providing all required info.


Problem solved,

using PHPRunner 6.2 Build 13703, but on the top left corner of PHPRunner, it tells me that im using Trial version, is it okey?
Thanks Sergey.

Admin 11/2/2012

Make sure you are not installing the trial version. Use download link from registration email.

M
Miguel 11/11/2012

I have as well the same problem:
Ixia.gif 2.55 KB SyntaxError: JSON.parse

Spiked.gif 2.80 KB SyntaxError: JSON.parse

Sunflower.gif 2.67 KB SyntaxError: JSON.parse
I have used on the mysql database mediumtext and as well varchar with more than 300 without success.

I think it could be a rights Problem but with the PHP Runner 5.3 is working ok.

B
bussb 1/8/2013

Is there a final update to this thread? I am having the same issues. One of my add/edit pages works great with the file uploads, another table in the same application with the exact same settings gives me a "SyntaxError: JSON.parse".
I am using PHPRunner 6.2 Build 14199, Registered version. The fact that one add/edit view works and another in the same application doesn't is strange. The only difference is the table names. Both "File" fields are varchar(500), I have a 5 file count upload max, 15000kb per file restriction and file type restriction of bmp,doc,docx,gif,html,jpg,pdf,png,ppt,pptx,rtf,txt,xls,xlsx
What was the final resolution?

A
Athlon 2/6/2013

Just come across this browsing: Maybe not related but I had the same issue using a VPS. It was folder rights causing the exact same error.
Manually set the folder chmod correctly and it works. Sometimes it is not created correctly from PHPR for what ever reason. Hope this will help someone.

M
mluer 2/16/2013

I am having this issue as well with any browser used. In Chrome I can see the upload take place and in my temp php uploads dir it is there. I then I get the

COA_Luer.jpg 9.95 KB SyntaxError: JSON.parse error. I am assuming it happens when it goes to copy the file.. I have tried all kinds of configs of the database and upload object and they all have the same error. Not sure what to do with yet.. all folder permissions are open 100% full control with all users including IIS USER..

M
mluer 2/17/2013



I am having this issue as well with any browser used. In Chrome I can see the upload take place and in my temp php uploads dir it is there. I then I get the

COA_Luer.jpg 9.95 KB SyntaxError: JSON.parse error. I am assuming it happens when it goes to copy the file.. I have tried all kinds of configs of the database and upload object and they all have the same error. Not sure what to do with yet.. all folder permissions are open 100% full control with all users including IIS USER..


OK FIXED IT.. I will probably not be the only one with this issue. I didn't have the open_basedir set correctly in php.ini to identify my custom php temp upload directory d:\php\uploads. I removed the custom php temp uploads directory reference from php.ini and it defaulted back to C:\windows\temp and started working immediately.
Just wanted to pass this along because it cost me 12 hours easy..
Thanks..
Mike.. This is an awesome product and have had it for at least 5 years or more...
Configs: Windows Server 2012, PHP 5.4.9 and MySQL 5.5

B
bussb 3/5/2013

My issue was with a LAMP setup on my host, Linux, Apache, MySQL, PHP. I've never had to change any PHP.INI settings before to get PHPRunner working with files, do I have to make some edits to use the multi-file upload or file upload?