• Resolved PatrickRiepe

    (@patrickriepe)


    Just migrated a wordpress site from one server to another, and post Thumbnail Editor stopped working. It still works fine on the original server, and the two are identical as far as I can tell.

    I had to run some queries on the database to update with the new URL, but I’m not sure if that is the issue. I tried re-installing PTE, but that didn’t work either. I’m using 2.4.0 of PTE.

    I’m not getting the white blank screen, but I am getting a blank gray screen next to the WordPress admin navigation. HTML code does load, but it doesn’t display. It’s an IIS server. I checked functions.php for blank lines, but that’s all good.

    Any ideas on what I should check?

    https://wordpress.org/plugins/post-thumbnail-editor/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author sewpafly

    (@sewpafly)

    It does sound like the functions.php new lines issue… Have you tried disabling all other plugins and using the stock theme? (Depending on how you moved the plugins/wordpress across, certain new line characters can be appended by ftp software).

    After you’ve ruled out the any outside problems (other plugins/themes), you could try enabling debugging and trying the basic PTE interface at a URL that looks like: http://wordpress/wp-admin/admin-ajax.php?action=pte_ajax&pte-action=iframe&pte-id=83 (change the wordpress and the actual id for pte-id). When this loads check the javascript console for errors and the network tab for URL’s that didn’t load.

    Let me know what you find.

    Thread Starter PatrickRiepe

    (@patrickriepe)

    Disabled all plugins except PTE, and switched to Twenty Eleven theme and got the same issue.

    No errors on the network tab. Got these Javascript errors:

    [13:30:04.954] SyntaxError: In https://ph-www.public-health.uiowa.edu/wp-content/plugins/post-thumbnail-editor/js/csmain.coffee, unexpected CALL_START @ https://ph-www.public-health.uiowa.edu/wp-content/plugins/post-thumbnail-editor/apps/coffee-script.js:8

    [13:30:12.662] Error: Load timeout for modules: cs!csmain_unnormalized2,cs!csmain
    http://requirejs.org/docs/errors.html#timeout @ https://ph-www.public-health.uiowa.edu/wp-content/plugins/post-thumbnail-editor/apps/requirejs/require.js:8

    It could be a permissions issue in IIS, but as far as we can tell, the settings on the relevant directories are all the same.

    Thanks for your quick response and assistance!

    Plugin Author sewpafly

    (@sewpafly)

    Is there anything in the log file (see the link at Settings → Post Thumbnail Editor)?

    I tried to load https://ph-www.public-health.uiowa.edu/wp-content/plugins/post-thumbnail-editor/js/csmain.coffee, but got a 404 error, so maybe this is behind a firewall, or maybe there’s an issue there?

    There are a number of files that need to be loaded when debugging is enabled (pretty much the entire js directory). The network tab in chrome is a friend here, it can tell you what failed to load and then you can see if you can just bring it up in your browser yourself.

    (If you disable debugging the coffeescript files aren’t loaded and only one minified javascript file is loaded, so maybe you could try it with debugging disabled, and this error should go away, but other javascript issues might still occur, and are harder to track down when debugging is disabled)

    Thread Starter PatrickRiepe

    (@patrickriepe)

    Log file:

    [DEBUG ][2014-06-09T18:41:18+00:00][ PTE-VERSION: 2.4.0
    USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
    WORDPRESS: 3.9.1 ]
    [DEBUG ][2014-06-09T18:41:22+00:00][ PARAMETERS: Array
    (
    [action] => pte_ajax
    [pte-action] => iframe
    [pte-id] => 5244
    ) ]
    [DEBUG ][2014-06-09T18:41:22+00:00][ PTE-VERSION: 2.4.0
    USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
    WORDPRESS: 3.9.1 ]

    Thread Starter PatrickRiepe

    (@patrickriepe)

    Yes, the site is under development so you won’t be able to access it. I will try the various debugging settings and get back. THANKS!

    Thread Starter PatrickRiepe

    (@patrickriepe)

    Ok, progress!

    I had WP-DEBUG set to true in wp-config. I turned that off, and turned off debugging in the plugin, and it appears to work (got past the blank screen, at least!)

    I will do some tests to see if the plugin actually functions properly in this state. If so, I’m good with it.

    Plugin Author sewpafly

    (@sewpafly)

    oh, great find! I have seen that debugging breaks PTE for some people, but haven’t found why yet.

    Thread Starter PatrickRiepe

    (@patrickriepe)

    Yes, it looks like it works fine if WP_DEBUG is false and the plugin debugging is turned off. Not sure what the issue is, but at least it is working.

    i need to move on, but I’ll check into it further and let you know if I learn anything useful. It’s a great plugin and I’m thrilled we got it working again!

    Thanks again for your prompt assistance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PTE broke on server migration’ is closed to new replies.