WP-SimpleViewer » How-to and Troubleshooting

Fatal Error in Wordpress...Options...WP-SimpleViewer

(5 posts)

  1. Hello

    Your Photo Gallery plugin looks really excellent.

    I'm having some trouble getting it working and I believe I have followed the installation instructions to the letter. The error message I'm getting is in the Wordpress Options section for WP-SimpleViewer, underneath the heading "Generate SimpleViewer gallery"

    Fatal error: Call to undefined function: attribute_escape() in /home/runfree/www/wordpress-2.0.5/wp-content/plugins/wp-simpleviewer/wp-simpleviewer.php on line 455

    A test post containing a gallery on my website:
    http://www.teamrunningfree.com/blog/2007/06/18/phototest/

    I would be grateful for any help you can provide.

    Thank You

    JR

    Posted 3 years ago #
  2. Hello!
    Which version of Wordpress are you running? From the wp-admin login I can see that it must be an older one.

    attribute_escape() is a wordpress function that has been introduced in version 2.0.6, do you have a version above that?

    Posted 3 years ago #
  3. Hi Markus

    Thanks for your very prompt response. We're using 2.0.5, but I believe we will be upgrading to 2.0.6 very shortly. If you think that will fix the problem, then that's all I need to know.

    Thanks again

    Jeremy

    Posted 3 years ago #
  4. I will update the readme that lowest compatible version is 2.0.6 that other will not run into this problem.

    This function is used for security reasons, you can modify the script to not use this function if you want. Open it in an editor and change every line where it is used like this:
    From: $galleryname=attribute_escape( $matches[1] );
    to: $galleryname=$matches[1];

    But upgrading is of course also a good idea - there are also other security fixes in the later wordpress versions.

    Cheers,
    Markus

    Posted 3 years ago #
  5. I just saw that I could have answered my question which version you are running myself:
    ...www/wordpress-2.0.5/wp-content/...

    Anyway, now it is too late ;)

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.