Home Forums Newsletter Plugin Support Notice: Undefined index: footer_contact

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #96001
    Rafasashi
    Participant

    I get the following error message:

    Notice: Undefined index: footer_contact in ../newsletter/includes/module.php on line 1426
    Notice: Undefined index: footer_title in ../newsletter/includes/module.php on line 1427

    I fixed it using:

        function get_options($sub = '') {
            $options = get_option($this->get_prefix($sub), array());
            if (!is_array($options)) {
                return array();
            }
    		if(!isset($options['footer_contact'])){
    			$options['footer_contact']='';
    		}
    		if(!isset($options['footer_title'])){
    			$options['footer_title']='';
    		}
            return $options;
        }

    Please consider adding it to the next upgrade.

    If you have any repository available on Github I would be more than happy to help.

    Just let me know!

    #96015
    Stefano
    Keymaster

    Hi thank you for reporting the error. Those values have not been initialized on installation we need to fix them. Enter the company info panel and just save that solves the problem.

    Stefano.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.