WordPress.org

Ready to get started?Download WordPress

Forums

CMS Tree Page View
Undefined index: cms_tpv_action (3 posts)

  1. Bortch
    Member
    Posted 4 years ago #

    Hello,

    Thanks for developing your plugin!

    I've just installed it and an error message appear:
    Undefined index: cms_tpv_action in www/site/wp-content/plugins/cms-tree-page-view/functions.php on line 75

    http://wordpress.org/extend/plugins/cms-tree-page-view/

  2. Pär Thernström
    Member
    Plugin Author

    Posted 4 years ago #

    Thanks for the bug report. I'll fix this and release a new version.

  3. Bortch
    Member
    Posted 3 years ago #

    Thanks for fast reply.

    I've temporarily fixed by this way:

    function cms_tpv_save_settings() {
    	$new_cms_tpv_action=NULL;
    	if (isset ($_POST["cms_tpv_action"])){$new_cms_tpv_action=$_POST["cms_tpv_action"];}
    	if ($new_cms_tpv_action == "save_settings") {

    also I've had another error (around line 660) fixed through:

    $post_type = $_GET["post_type"];
    	if (isset($_GET["search_string"]))//b
    	{//b
    	$search = trim($_GET["search_string"]);// exits if we're doing a search
    	}//b
    	else {$search=NULL;} //b

    and finally another one :
    Undefined property: stdClass::$post_type in <b>/www/site/wp-admin/includes/template.php</b> on line <b>603</b><br />

    badly fixed in 'wp-admin/includes/template.php' on line 603:

    if ( empty($screen))
    {$post_type = 'post';}
    else
    {
    if(isset($screen->post_type))
    {$post_type = $screen->post_type;}
    else
    {$post_type = 'post';}
    }

    no more notification...

    It's surely not the best solution... but it works till now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic