WP-SimpleViewer » How-to and Troubleshooting

add_filter() fatal error.

(5 posts)

  1. simonwh
    Member

    Hello,

    I just discovered this very nice pluging for WP, and I wanted to try it out. However, I didn't get far because when i try to access the control panel of the plugin (which should be wp-simpleviewer.php right?), I get this error:

    Fatal error: Call to undefined function: add_filter() in /home/595/domains/XXXXX/wp-content/plugins/wp-simpleviewer/wp-simpleviewer.php on line 28

    I really don't know how to fix this. Do you got any suggestions?

    Posted 3 years ago #
  2. Hello,

    this line is nothing special and I have no idea why you get this error:
    add_filter('the_content', 'wp_simpleviewer');

    I searched for the error on the Wordpress support forum, and most times the solution was to upload all files again beacause some of them were not uploaded completely during an upgrade or something like that. Maybe the plugin's php file was not uploaded correctly in you case?

    You can find three discussions arround that here:
    http://wordpress.org/support/topic/102858
    http://wordpress.org/support/topic/101717
    http://wordpress.org/support/topic/89070

    Let me know if this helped you!

    Posted 3 years ago #
  3. simonwh
    Member

    It didn't help to re-upload the files. Very weird. Any ideas?

    Posted 3 years ago #
  4. simonwh
    Member

    Stupid me. I got it worked out.

    Although, I get a new error when trying to create a gallery now:

    GD library version 2 or later is required. You are running version: bundled (2.0.28 compatible)

    Now the images and XML file for the selected folder will be created:

    Now I am working on file WoWScrnShot_061207_234916.jpg:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5120 bytes) in /home/xxx/user/htdocs/wp-content/plugins/wp-simpleviewer/wp-simpleviewer.php on line 676

    Posted 3 years ago #
  5. Looks like a problem with to less memory. What's the size of your image (WoWScrnShot_061207_234916.jpg)? If it has several megapixels you can try to resize it before you create the thumbs, then it should not take so much memory for the GDlib.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.