test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • borzoi73 Friend
    #152063

    Hello everybody,
    try this:

    1) create an entry in mainmenu (I created a link to a contact visible only to Registered users);
    2) make this entry available just for Registered users.

    If you publish this entry, you should have a

    Fatal error: Call to a member function get() on a non-object in C:xampphtdocsprolocotramutolatemplatesja_purity_iilibsmenubase.class.php on line 149

    Line 149 in argument is the following:

    if (($v->megaparams->get(‘modid’) || $v->megaparams->get(‘modname’) || $v->megaparams->get(‘modpos’))
    && !isset($this->children[$v->id]) && (!isset($v->content) || !$v->content)) {

    Should you unpublish the entry, the error disappear.
    How to fix this?

    Saguaros Moderator
    #348161

    you can fix it :

    [PHP]
    if (($v->megaparams->get(‘modid’) || $v->megaparams->get(‘modname’) || $v->megaparams->get(‘modpos’))
    && !isset($this->children[$v->id]) && (!isset($v->content) || !$v->content)) {
    [/PHP]

    =>>

    [PHP]
    if ( is_object($v->megaparams) && (($v->megaparams->get(‘modid’) || $v->megaparams->get(‘modname’) || $v->megaparams->get(‘modpos’))
    && !isset($this->children[$v->id]) && (!isset($v->content) || !$v->content) ) ) {
    [/PHP]

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 14 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum