Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • moabman1

    (@moabman1)

    I had the same problem as Chris. The panel.js script was not appearing in the code. After insuring it wasn’t loading, I tried what Chris suggested and then everything worked fine. I double checked to make sure it wasn’t loading twice after implementing Chris’ suggestion and it only one script appeared. Thanks for the tip Chris and thanks for the warning green.

    Thread Starter moabman1

    (@moabman1)

    RESOLVED .. I discovered there was a conflict between the javascript related to sponsors-slideshow-widget and the problems above. Removing that plugin solved the issue.

    Thread Starter moabman1

    (@moabman1)

    UPDATE II … Using this code

    <?php
    $thePostID = $post->ID;
    echo $thePostID;
    $thePostParentID = $post->post_parent;
    echo $thePostParentID;
    ?>

    I’ve determined that no results occur unless logged in as administrator.

    Thread Starter moabman1

    (@moabman1)

    UPDATE … ok, I’ve narrowed the problem down to this. When logged in as administrator I am able to get results when I try to call for the page ID number such as:

    .$post->ID

    But, when not logged in as an admin, I can’t get any results from that equation. This is what is causing my php sub page request to fail.

    Thread Starter moabman1

    (@moabman1)

    Also, the example noted in post 1 has been corrected based on the work-around mentioned in post 3.

    The site is https://www.ewillys.com

    My feeling at this point is that there is some conflict that is keeping non registered users from accessing the code necessary (maybe even function.php?) to make the submenus, and perhaps the sidebar, operate correctly.

    I think I will try manually installing wordpress 9.1 to see if there was a problem installing the upgrade correctly. That might explain my unusual glitches.

    Thread Starter moabman1

    (@moabman1)

    I finally created a box that appears on all subpages which states that there was a problem with the wordpress upgrade and that all uses who wish to see the subpage options should register.

    It’s non optimal, but I’m not sure what else to do at this point.

    Thread Starter moabman1

    (@moabman1)

    I tested a different piece of code. This PHP piece correctly returns the right menu when users are logged in:

    <?php wp_list_pages('child_of=' . wpe_highest_ancestor()); ?>

    with this inserted in the functions.php file

    function wpe_highest_ancestor(){
    global $post;
    $page_ancestors = end($post->ancestors);
    if(!empty($page_ancestors)){
    $child_of = $page_ancestors;
    }else{
    $child_of = $post->ID;
    }
    return $child_of;
    }

    However, when users are logged out, instead of a repeat of the top menu in the submenu space (discussed above), I get all the submenus for each parent menu item AND I get an error message that says: Warning end() [function end]: Passed variable is not an array or object in the functions.php on line 3634

    Yes, we had this happen yesterday. Interestingly, the author whose post disappeared posted the same post to his own wp instance with no problem. He runs 2.1.3 while we run 2.1.2.

    The post existed for around 24 hours and had a comment. When the author went in to look at his code, he hit the edit button and recieved a message “you are not allowed to
    edit this post”

    I went into the db and discovered his post was completely gone.

    I have asked him to report on what plugins he uses to see if a plugin might somehow be causing a problem.

Viewing 8 replies - 1 through 8 (of 8 total)