Support » Plugin: File Away » PHP Version 5.5 – no upload

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author thomstark

    (@thomstark)

    It could be any number of things, and may or may not be related to your PHP upgrade. I have several setups that are running 5.5 and File Up works fine on all of them, so it’s not a compat issue with 5.5 itself. Perhaps some setting.

    Are you running SSL on your WP backend, but not the front-end?

    Are there double-dots (..) in the filename?

    What type of file are you uploading?

    Does the progress bar get to 100% then it fails, or does it fail before then?

    Have you tried enabling your error log in WP_Config, then uploading a file, then checking the error log?

    Hi thomstark,

    thanks so much for the quick answer!
    We are not running SSL, there are no dots in the file name (it’s “test.pdf” actually) and unfortunately nothing gets written in the log.

    I can choose the file, but after I click the upload the error message appears. I think the upload doesn’t start, something happens right before.

    Regards,

    Kirsten

    Plugin Author thomstark

    (@thomstark)

    Would I be able to get access to the page?

    Plugin Author thomstark

    (@thomstark)

    It sounds like this is happening on the client-side (javascript), which means it isn’t even making it to the server, thus PHP isn’t even involved in producing the error message (so the upgraded PHP version wouldn’t be the culprit).

    Plugin Author thomstark

    (@thomstark)

    If you’re not able to provide access to me, that’s fine. If you’re able to make a few modifications we can do some testing to find the point of failure. We’ll rule out the PHP first.

    Open up wp-content/plugins/file-away/lib/cls/class.fileaway_management.php

    Starting at line 1058, do a text search for the word “system_error”. There are ten of these in the script.

    change each instance of:

    echo 'system_error';

    numbering them consecutively, like so:

    echo 'system_error_1';
    echo 'system_error_2';

    etc.

    until you have all ten numbered.

    Then, open up wp-content/plugins/file-away/lib/js/management.js

    go to line 1607.

    It should read like this:

    success : function(response)
    {
    	setTimeout(function()
    	{
    		if(response.indexOf(id) != -1)
    		{

    replace that with this:

    success : function(response)
    {
    	setTimeout(function()
    	{
    		console.log(response);
    		if(response.indexOf(id) != -1)
    		{

    you’re adding console.log(response); above the line that says:

    if(response.indexOf(id) != -1)

    Save both documents, reload the page, open your browser console, try uploading the file, then you should see “system_error_” with a number between 1 and 10.

    Let me know which number it is.

    Thanks so much, you rock!
    My colleague is just taking the steps you suggested.

    By the way – we discovered a conflict with another plugin (Foo Gallery).

    We will keep you posted!

    Plugin Author thomstark

    (@thomstark)

    Yeah, File Away uses Foo Table, so you don’t want to load their scripts on the same pages.

    Hi,
    (I am working with Kirsten at this project.)
    Thanks so much for all the effort you put into this.
    I did what you told us above but I only got the console to display a “0”,
    no “system_error_”.

    We did find out though that there seems to be a conflict with the FooGallery plugin. When I turn the FooGallery off everything is fine.

    I’d gladly give you access to the site on our staging server, just let me know your address..
    Thanks again!

    Elisabeth

    Plugin Author thomstark

    (@thomstark)

    Thanks. Please send to [ redacted, support is not offered via email, Skype, IM etc. only in the forums ]

    Oh, just saw your response concerning Foo Table..
    So we cannot use both, I assume? FooGallery and FileAway?
    What a shame.

    Thanks again,

    Elisabeth

    Plugin Author thomstark

    (@thomstark)

    A “0” response is a much stranger problem. It means the ajax function isn’t even finding its target on the server-side.

    Plugin Author thomstark

    (@thomstark)

    I’ll take a look at the Foo Gallery conflict when I get access.

    Send you an email..
    Thanks!

    Plugin Author thomstark

    (@thomstark)

    I’m getting: “ERROR: User has not been activated” when trying to log in.

    Plugin Author thomstark

    (@thomstark)

    FEHLER: Nutzer wurde nicht aktiviert.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘PHP Version 5.5 – no upload’ is closed to new replies.