WordPress.org

Ready to get started?Download WordPress

Forums

Simple Ads Manager
[resolved] Multiple errors (5 posts)

  1. doowdle
    Member
    Posted 1 year ago #

    Notice: Undefined property: SAMHelp33::$listPage in /wp-content/plugins/simple-ads-manager/help.class.php on line 89

    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in /wp-includes/functions.php on line 2638

    on installation WP gives a warning that the plugin is creating 805 chars of wrong content - expect problems.

    http://wordpress.org/extend/plugins/simple-ads-manager/

  2. comgate
    Member
    Posted 1 year ago #

    Same issues here.
    WP version 3.4.1
    Custom theme in development

    Notice: Undefined property: SAMHelp33::$listPage in [...]/wp-content/plugins/simple-ads-manager/help.class.php on line 89
    
    Notice: Undefined property: SAMHelp33::$editPage in [...]/wp-content/plugins/simple-ads-manager/help.class.php on line 89
    
    Notice: Undefined property: SAMHelp33::$listZone in [...]h/wp-content/plugins/simple-ads-manager/help.class.php on line 89
    
    Notice: Undefined property: SAMHelp33::$editZone in [...]/wp-content/plugins/simple-ads-manager/help.class.php on line 89
    
    Notice: Undefined property: SAMHelp33::$listBlock in [...]/wp-content/plugins/simple-ads-manager/help.class.php on line 89
    
    Notice: Undefined property: SAMHelp33::$editBlock in [...]/wp-content/plugins/simple-ads-manager/help.class.php on line 89
    
    Notice: Undefined property: SAMHelp33::$settingsPage in [...]/wp-content/plugins/simple-ads-manager/help.class.php on line 89

    And when I try to add a new "Place" I get this in "Add Place Size" area :

    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/sr-strh/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628'

    Any advices ?

  3. comgate
    Member
    Posted 1 year ago #

    Also after adding new place the following problem pops up, under the Update WordPress / Help bar:

    Notice: Undefined index: patch_adserver in [...]/wp-content/plugins/simple-ads-manager/editor.admin.class.php on line 255
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628
    
    Notice: __ngettext is deprecated since version 2.8! Use _n() instead. in [...]/wp-includes/functions.php on line 2628

    p.s. PHP version 5.2.17

  4. comgate
    Member
    Posted 1 year ago #

    solved the issue mentioned in my 2nd post by replacing all
    __ngettext
    with
    _n
    in the following files in the main plugin directory:

    • editor.admin.class.php
    • list.admin.class.php

    About all the "undefined index" notices (and there are way more of those, then just the ones related to the SAMHelp33 class),
    well, SAM seems to be working fine even this way, so simply turning my
    wp_config.php's line
    define('WP_DEBUG', true);
    to
    define('WP_DEBUG', false);
    will hide this issue, when I will be giving away my theme to the end-user.

    Yet, I'd say this otherwise very nice plugin, can greatly benefit from utilizing isset() in it's code.

  5. minimus
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for help in testing! Resolved in beta 1.7.57

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic