Skip to content

Error during install PHP 7 #9

@ivywe

Description

@ivywe

If this is a production website you must disable this option once you have resolved any issues you are investigating.

E_WARNING(2) - Illegal string offset 'Maps' @ /.../plugins/maps/functions.inc line 145

Call Stack

Function File Line

1 plugin_getmenuitems_maps /.../private/system/lib-plugins.php 425
2 PLG_getMenuItems /.../web/lib-common.php 1705
3 COM_createHTMLDocument /.../web/admin/plugins.php 967
4 plugin_main /.../web/admin/plugins.php 1381

from:

function plugin_getmenuitems_maps()
{
    global $_CONF, $_MAPS_CONF, $LANG_MAPS_1;

    $menuitems ='';
    
    if ($_MAPS_CONF['hide_maps_menu'] == 0) {
        $url = $_MAPS_CONF['site_url'] . '/index.php';
        $menuitems[$LANG_MAPS_1['plugin_name']] = $url;
    }
    return  $menuitems;
}

to:

function plugin_getmenuitems_maps()
{
    global $_CONF, $_MAPS_CONF, $LANG_MAPS_1;
    
    return  'Maps';
/*
    $menuitems ='';
    
    if ($_MAPS_CONF['hide_maps_menu'] == 0) {
        $url = $_MAPS_CONF['site_url'] . '/index.php';
        $menuitems[$LANG_MAPS_1['plugin_name']] = $url;
    }
    return  $menuitems;
*/
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions