• Resolved twinpictures

    (@twinpictures)


    After activating the plugin, a lot of undefined variable notices are being thrown:
    Notice: Undefined variable: layout_arr in .../class-smoobu-calendar.php on line 96
    Fix: define the array:

    private function set_layout( $layout ) {
    	// form an array of measures.
    	$layout_arr = array();

    Next:
    Notice: Undefined index: general_bg in .../styling.php on line 110
    Fix: check if the key exists before echoing it:

    if( ! empty( $default_settings[ $key ] ) ){
       echo esc_attr( $default_settings[ $key ] );
    }

    Is there a GitHub repo that can be forked, fix and a pull request submitted?

    • This topic was modified 4 years, 7 months ago by twinpictures.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Mindaugas Jakubauskas

    (@meevly)

    Hi @twinpictures

    We are really sorry about the issue. We are going to fix all undefined variables (those you have mentioned and those you have not) this week, as soon as possible. I will update this thread when it happens.

    At the moment there is no public GitHub repository for this plugin but we will update plugin description once we have it!

    Thread Starter twinpictures

    (@twinpictures)

    Hey Great!

    Yeah, if you open a GitHub repo, I would be happy to fork it and share back any new features I am thinking of adding.
    But I do like the plugin more than the iframe availability calendar from Smoobu direkt.

    Make it a great day.

    Plugin Contributor Mindaugas Jakubauskas

    (@meevly)

    Hey @twinpictures once again,

    We have fixed undefined indexes and variables notices all over the plugin. Please inform us if you still encounter any of them. And thanks once again for letting us know!

    Got it, I will inform you once the repository is set ??

    Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice: Undefined variable > GitHub?’ is closed to new replies.