New Landing How can we help? Themeforest Theme Support Flexform Redeclare aq_resize() errors

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Flexform
  • #39893
    webxmedia
    Member

    Hi,

    I use your FlexForm theme which is great. But noticed with some plugins it conflicts causing the site to fail with the following error:

    Fatal error: Cannot redeclare aq_resize() (previously declared in /home/xxxx/public_html/studio/wp-content/plugins/showbiz/inc_php/framework/aq_resizer.php:201) in /home/xxxx/public_html/studio/wp-content/themes/flexform/includes/plugins/aq_resizer-1x.php on line 134

    I’ve found a solution which involves wrapping the aq_resize() function in a function_exists check – as below. I’ve applied this to both the aq_resizer-1x.php and aq_resizer-2x.php files in your theme, however wondered as others seem to be suffering from this if you’re able to incorporate this, or something similar in a future release?

    if(!function_exists(‘aq_resize’)) {
    function aq_resize( $url, $width, $height = null, $crop = null, $single = true ) {

    Many thanks.

    Matt.

    #40221
    Melanie – SUPPORT
    Member
    Post count: 11032

    Fantastic, I’ll forward this to the developer 🙂

    #40331
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Matt,

    I wouldn’t advise this, as we use a modified version. Thinking about this, it may be best if we use our own custom function name for this.

    By adding that function, you’ll likely lose retina functionality.

    – Ed

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register