![]() |
|
Error in jquery uploader - SyntaxError: Unexpected token ... - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Error in jquery uploader - SyntaxError: Unexpected token ... (/thread-9788.html) |
Error in jquery uploader - SyntaxError: Unexpected token ... - rhermans - 2012-03-21 Hi, first off I really like this product, I started with it a month ago and with the information here it's been smooth sailing with only one problem ... I'm trying to get the jquery upload to work and am getting In the post response in firebug I found Checking the php version on the server got me a 5.2. and the array_replace_recursive function is only available from 5.3 I don't know if my provider will upgrade the php version any time soon, (just asked them) but is there any way to go around this function. Any help is greatly appreciated. Ronny Error in jquery uploader - SyntaxError: Unexpected token ... - rhermans - 2012-03-21 Not the full solution but a step in the 'maybe' good way Added next piece of code in the php section ////////////////////////////////////////////////////////////
} the upload happens and goes to the correct directory / $image->setOwner($_zp_current_admin_obj->getUser()); Again this is way out what I know of php and zenphoto, but I'm learning. Error in jquery uploader - SyntaxError: Unexpected token ... - acrylian - 2012-03-21 I am not sure if we will change this as this is a 3rd party tool we just use (I will leave this to my colleague to decide). Did you try one of the two (with FTP actually three) upload ways? Error in jquery uploader - SyntaxError: Unexpected token ... - rhermans - 2012-03-21 All the other uploads are working fine, Most of my work I'm busy with aspnet and stuff, and I have the jquery uploader working in some projects. So its just something that was bothering me, also I find that the jquery upload works fastest (except ftp, but I'm not going to give ftp accounts). At least I'm going to go one with this to get a more descent solution without removing code. Thanks for the fast response Ronny Error in jquery uploader - SyntaxError: Unexpected token ... - acrylian - 2012-03-21 All right, we appreciate that nevertheless. A way would be to contact the actual developer of the jquery uploader. Perhaps he just missed that he is using a php 5.3 only function (5.3 is of course the current PHP version, despite host not using it yet) |