photo

Yellx Hosting

shared this question
1 week ago

Statistics

1
Comments
1
Views

Relates to

Share

Tags

1
votes

Add-On iconizer

Hello Eduardo Marques,

I could not find a way to message you privately. When I move PHP to version 7.0.33 from ver 5.6.40 your great add-on iconizer seems to work but I get a error message

  1. Deprecated: Non-static method listing_pages::renderSingleListingItem() should not be called statically in /srv/disk3/1379308/www/yellx.co.uk/addons/iconizer/addon.inc.php on line 220

The add-on does still work other that this error at the top of the website, twice. any help with this, Thankyou

Any one else using this add-on?

Add Comment

Comments (1)

photo
1

Hi,

The error message means that function is deprecated by PHP.

Anyway... that addon is 10 years old and should be totally rewritten!!!

Open-Realty also changed and I am not 100% sure if this will "fix" the problem:

Replace from

  1. /**

    ADD-ON SPECIFIC FUNCTION: iconizer_field_elements()

    */

    function iconizer_field_elements($fieldname, $current_ID) {

    global $config;

    require_once($config['basepath'] . '/include/listing.inc.php');

    $field_elements = listing_pages::renderSingleListingItem($current_ID, $fieldname, "rawvalue");

    return $field_elements;

    }

Replace to

  1. /**

    ADD-ON SPECIFIC FUNCTION: iconizer_field_elements()

    */

    function iconizer_field_elements($fieldname, $current_ID) {

    global $config;

    require_once($config['basepath'] . '/include/listing.inc.php');

    $listing_pages = new listing_pages();

    $field_elements = $listing_pages->renderSingleListingItem($current_ID, $fieldname, "rawvalue");

    return $field_elements;

    }

Notice my recommendation: you should not be using this addon!

Good luck,

Eduardo

Leave Comment

photo

Attach files...

The file must be a jpg, gif, png, bmp, ico, pdf, doc, rtf, txt, zip or rar no more than 20M