WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Emma Email Signup] I'm getting this error message (2 posts)

  1. suhayse
    Member
    Posted 4 years ago #

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/41/d235992869/htdocs/creativeconferences/wp-content/plugins/emma-email-signup/widget.php on line 10

    http://wordpress.org/extend/plugins/emma-email-signup/

  2. ramseyp
    Member
    Posted 3 years ago #

    You've come across a PHP5 /PHP4 conflict, I bet. I just had this happen with this plugin. The client's server is running PHP 4.3 and this plugin's widget has part of it written using PHP5 code.

    What should work is to rewrite these lines (8 through 12):

    class Emma_Email_Signup_Widget extends WP_Widget {
    
    	public function __construct(){
    		parent::__construct( false, $name = __( 'Emma Email Signup', 'emma-email-signup' ) );
    	}

    as this:

    class Emma_Email_Signup_Widget extends WP_Widget {
    
    	var $Emma_Email_Signup_Widget;
    	function __construct(){
    		parent::__construct( false, $name = __( 'Emma Email Signup', 'emma-email-signup' ) );
    	}

    That should fix the problem and allow you to activate the plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic