Page 1 of 1

Problem with creation of connection to MySql

Posted: Mon Mar 21, 2016 11:55 pm
by Mariusz
Hello,
On my linux hosting I'm trying Stimulsoft Reports.PHP 2016.1 Trial and I have problem with creation connection to MySql.
This is my connection string:
Server=localhost;Database=xxxxx;User=xxxx; Password=xxx;
After clicking Test nothings happens, but on js console:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data in http://mydomena/JS/Samples/scripts/stim ... reports.js

Can you help me?

Thanks

Re: Problem with creation of connection to MySql

Posted: Tue Mar 22, 2016 7:04 am
by Vladimir
Hello,

Please try to use the sample project from this archive:
https://drive.google.com/file/d/0BxTYlh ... sp=sharing

We tested the MySql connection on our test database using this example and js libraries without any errors.
Please tell us about the results.

Thank you.

Re: Problem with creation of connection to MySql

Posted: Tue Mar 22, 2016 9:43 am
by Mariusz
Hello,
Unfortunately nothing changed :( There is the same problem.
You can try testing on:

http://stimulsoft.linuxpl.info/JS/Samples/

Re: Problem with creation of connection to MySql

Posted: Tue Mar 22, 2016 11:54 am
by Vladimir
Hello,

Most likely your server is using PHP 5.2 or lower.
Requires PHP 5.3 or above, since in the project we use an anonymous functions.

Please check the version of PHP you are using.

Thank you.

Re: Problem with creation of connection to MySql

Posted: Tue Mar 22, 2016 12:40 pm
by Mariusz
Ok, that was the problem.
Thank you :)

Re: Problem with creation of connection to MySql

Posted: Tue Mar 22, 2016 2:22 pm
by HighAley
Hello.

We are always glad to help you.
Let us know if you need our help.

Thank you.