Author Topic: Add_image_size() function error with latest version  (Read 923 times)

Three-Star Dave

  • Newbie
  • *
  • Posts: 3
Add_image_size() function error with latest version
« on: May 31, 2010, 02:45:53 PM »
In upgrading AVH Amazon to the most recent version (3.3.1), my whole WP install crashes with:


Fatal error: Call to undefined function add_image_size() in /home/dave/public_html/blog/wp/wp-content/plugins/avh-amazon/2.8/avh-amazon.client.php on line 1109


The error is only recoverable by deleting the AVH Amazon directory.  The previous version ran fine.

I am running WP 2.8.4, which is supposedly a supported version; I was previously running 3.2.1 of AVH Amazon.

Three-Star Dave

  • Newbie
  • *
  • Posts: 3
Re: Add_image_size() function error with latest version
« Reply #1 on: July 17, 2010, 12:23:41 AM »
Wandering back to the forum again, as I just tried installing this once again, and ran into the same problems.  Anyone else?

Three-Star Dave

  • Newbie
  • *
  • Posts: 3
Re: Add_image_size() function error with latest version
« Reply #2 on: August 06, 2010, 07:13:32 PM »
And just a final note -- upgrading to 3.0.1 apparently fixed the problem.  I was able to reinstall AVH Amazon (after fixing the 3.0 Plugin Upgrade Bug), and all's right with the world.

Peter

  • Administrator
  • Regular
  • *****
  • Posts: 439
    • http://blog.avirtualhome.com
Re: Add_image_size() function error with latest version
« Reply #3 on: August 12, 2010, 07:10:55 AM »
I don't understand why I don't get emails from this forum sometimes  >:(

add_image_size function was introduced in 2.9. The WordPress code doesn't indicate when this function was introduced and the functions around  this function are there since 2.5. My mistake for not double checking.
Bottom line: The latest version requires WordPress 2.9 or higher.
Peter van der Does
AVH Plugins developer