WordPress.org

Forums

TablePress
[resolved] Updating WP and TP first kills site then gives error (10 posts)

  1. Ninjamankid
    Member
    Posted 1 year ago #

    Hi,

    firstly: this is a great plug in that has always worked flawlessly. Until we updated WP to version 3.8.1 and also the latest version of TP (from version 1.0). Then it started to behave wierdly:

    • First it totally broke the site - all that was shown was a white page.
    • I then turned off all plug ins and then the white page problem disappeared and instead the plug in gave this error message on the WP plug in page:

    Warning: require_once(/data/wwwroot/sites/www.nordicgreen.se/wp-content/plugins/tablepress/classes/class-tablepress.php): failed to open stream: No such file or directory in /data/wwwroot/sites/www.nordicgreen.se/wp-content/plugins/tablepress/tablepress.php on line 49 Fatal error: require_once(): Failed opening required '/data/wwwroot/sites/www.nordicgreen.se/wp-content/plugins/tablepress/classes/class-tablepress.php' (include_path='.:/usr/share/php:/usr/share/pear') in /data/wwwroot/sites/www.nordicgreen.se/wp-content/plugins/tablepress/tablepress.php on line 49

    • I then turned on the plug ins again and continued to get the error message above.
    • Then suddenly the white page problem came back. I checked the code of the white page and this is what my Safari Web Inspector shows:

    <html><head><script type="text/javascript">
    <!--
    jQuery(function($){
    	jQuery("#ssh").click(function () {
    		jQuery(".ssh_keys").show();
    	});
    	jQuery("#ftp, #ftps").click(function () {
    		jQuery(".ssh_keys").hide();
    	});
    	jQuery('form').submit(function () {
    		if(typeof(Storage)!=="undefined") {
    			localStorage.privateKeyFile = jQuery("#private_key").val();
    		}
    	});
    	if(typeof(Storage)!=="undefined" && localStorage.privateKeyFile) {
    		jQuery('#private_key').val(localStorage.privateKeyFile);
    	}
    	jQuery('form input[value=""]:first').focus();
    });
    -->
    </script>
    </head><body><form action="" method="post" enctype="multipart/form-data">
    <div class="wrap">
    </div></form></body></html>

    • I turned on the debug mode in WP-Config and got this:

    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /data/wwwroot/sites/www.nordicgreen.se/wp-includes/functions.php on line 3049
    Fatal error: Call to undefined function screen_icon() in /data/wwwroot/sites/www.nordicgreen.se/wp-content/plugins/ssh-sftp-updater-support/sftp.php on line 139

    • I changed theme from my Modernize theme to WP theme Twenty Fourteen but the problem is the same.

    This is confusing since Tablepress has worked perfect before. Any help is most appreciated - all our tables are broken right now!

    Best Regards

    Johan

    https://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    As it seems, the plugin update did not work completely, i.e. there are files missing.
    That would explain the message on the back end.
    The message on the front end seems to have HTML code regarding SSH keys, so I assume that that is related to the ssh-sftp-updater-support plugin that you are using (which is part of the second error message).

    My recommendation here would be to re-install TablePress manually via direct SSH/FTP login. You should download a fresh ZIP file and manually replace the tablepress folder on the server with that.

    Regards,
    Tobias

  3. Ninjamankid
    Member
    Posted 1 year ago #

    Hi,

    thanks for the swift answer. I've tried your solution and get the same result. Could it be that some files are missing in the downloaded content? Or are corrupted?

    Best Regards

    Johan

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johan,

    no, I just checked the download ZIP file, and everything is correct there.
    Are you sure that the files /wp-content/tablepress/tablepress.php and /wp-content/tablepress/classes/class-tablepress.php exist on the server and are readable? Could it be a file permissions error?
    Maybe your webhost company can help with those?

    Regards,
    Tobias

  5. Ninjamankid
    Member
    Posted 1 year ago #

    Hi,

    I changed permissions to 777 on both files. Sadly this makes no difference. Same result as before. Thought it might be some sort of server side problem but our tech guy says there is nothing wrong there.

    Could the Tablepress database be corrupt? How do you check that?

    Strangely enough, our theme "Modernize" behaves the same way when I try to upgrade to the latest version (which is supposed to work with WP 3.8.1). The site goes white page. This has me wondering if there is something fundamentally wrong somewhere and not with your plug in. I know nothing about back end so I guess I have to call in professionals.

    Regards
    Johan

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johan,

    no, I don't think that the database is involved here. That first error message indicates that the main file of TablePress is no able to load some required plugin files (either because they don't exist, or because PHP is not allowed to read them).
    If this happens with the theme as well, this indicates some server issue, indeed. You should try to work with the webhost support people/server admin to find the cause for this, maybe by checking the server's or the PHP error logs.

    Regards,
    Tobias

  7. Ninjamankid
    Member
    Posted 1 year ago #

    Hi,

    our tech guy did this:

    • He reverted back to the old WP version and then used the GUI to update.
    • Now the old Tablepress 1.1.1 version is ok, but if I upgrade the site goes white page.
    • I can now update Modernize.

    So maybe there is something fishy with Tablepress? ;-) The server seems to have problem finding files: tablepress.php and class-tablepress.php. Or who knows what's up. I'll just have to refrain from upgrading the plug in.

    Thanks for taking time to help. Plug in is still awesome.

    Regards
    Johan

  8. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johan,

    good to hear that they were able to fix the site for now, but that will be just a temporary solution.

    I don't think that there's something wrong in TablePress here, as I would have heard about such a problem before. If the server (or PHP on the server) is having trouble finding files, that's not something that is caused by TablePress.

    If you find something where I can help here, just let me know!

    Regards,
    Tobias

  9. baweibel
    Member
    Posted 1 year ago #

    Tobias - just FYI, I experienced exactly the same problem when your update first came out and had to roll back to recover my site. I love your plugin, so have just opted to stay with version 1.2. Site is holeinthedonut.com. Using WordPress v3.8.1.

  10. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi baweibel,

    thanks for that information! Sorry to hear that you are also affected.

    That's a really strange issue then. However I have no real clue what could be causing this :-( I'm using plain, basic PHP code there, and those error messages are raised by PHP itself. I can only assume that something on the server is interfering here. Otherwise this should happen for many more users...

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic