• Resolved davidedw

    (@davidedw)


    I’ve been using the Now Reading (for WP 2.7) plugin for a while in both a production (WP 2.7.1) and test (WP 2.8) blogs. Both were are 4.4.5.

    In trying to update the theme template files, I started getting Internal Server Errors on all of the library pages. Strange. So I thought I’d kill off my custom template files, go get the latest Now Reading, install it and recreate the custom template files.

    Now I’m seeing a few errors.

    First error, when I deactivate the old (4.4.5) and try to activate the new (both 5.0.3 & 5.0.3.1) I’m getting the following error (this is from the 5.0.3.1 activate):

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Cannot redeclare nr_check_versions() (previously declared in /home/davidedw/public_html/test_blog/wp-content/plugins/now-reading-reloaded/now-reading.php:68) in /home/davidedw/public_html/test_blog/wp-content/plugins/now-reading-reloaded/now-reading.php on line 75

    The curious thing is that after this, on a refresh of the Installed Plugins page it shows as activated. Could it be that it’s partially activated?

    Second error,on my prod blog (WP 2.7.1 & NRR 5.0.3.1) I can see all books when I go to the admin Manage Book options, but when I try to view the library (https://davidedwardsphotos.com/blog/library) I get the “Sorry, no posts matched your criteria.” messaage. If I select a specific book from my sidebar, I get the same error. It’s like the entries are in the DB, but something in the new code can’t find them.

    Third error, on my test blog (WP 2.8 & NRR 5.0.3.1) I’m getting an internal server error (500) when trying to access any of the pages or even click the Update Options button on the Options page. Any advice on how to debug this.

    Sorry if I should have raised three separate posts on this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • If you go into the options page, confirm that mod_rewrite is enabled for Now Reading and that /library/ is the base path, and save those options, does the problem persist?

    Thread Starter davidedw

    (@davidedw)

    They were set. I’ve just checked them again and saved them again. Problem still persists.

    You appear to be running 4.4.5 still, as far as the database is concerned. Your initial supposition (that the installation/activation was somehow corrupted) would appear to be the correct one.

    Please delete the old version of the plugin (“Now Reading for WordPress 2.7+) from your server. Then deactivate and reactivate the new plugin (“Now Reading Reloaded”).

    Check under …/<your-blog-name>/wp-content/plugins — you probably still have a “now-reading” folder there.

    I had a problem with leftover files from a previous version as well.

    Thread Starter davidedw

    (@davidedw)

    OK, halfway there. I’ve done as suggested on both my prod and test blogs.

    For the prod blog (https://davidedwardsphotos.com/blog), which is WP 2.7.1, all appears fine.

    For the test blog (https://davidedwardsphotos.com/test_blog), which is running WP 2.8, I’m still getting the internal server errors.

    The php.ini file is showing 64M memory (“memory_limit = 64M”).

    I’ve checked the .htaccess files and they seem fine. The one in my root is for the phpsuexec and the one in the test blog root is:

    Options -Indexes

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I’m not seeing anything in the http server or php error logs, which is a worry.

    From what little I can figure out from your [test]blog, it looks as though the library link in the header is not mod-rewritten, although the generated pages are. Access mod_rewrite pages appears to throw the error.

    The library page (https://davidedwardsphotos.com/test_blog/?now_reading_library=true) appears to output books, but other parts of the template appear to be missing (such as CSS). Is this test blog running customized templates? Does it work without them?

    Thread Starter davidedw

    (@davidedw)

    Brilliant, the mod-rewrite was the problem! When I’d setup the test blog I’d missed the custom permalink setting I used on the prod blog.

    I was in the middle of modifying the templates for my custom theme, thus the lack of css.

    Thanks for all your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Now Reading Reloaded] Fatal error trying to activate and use 5.3.0.1’ is closed to new replies.