Skip to content

Notice and error: Undefined index: url while_parsing_page_form #6

@jools-r

Description

@jools-r

Using v0.5 of etc_pagination with PHP 7+ (tested with 7.0 and 7.3) and the current 4.8 dev (24 July 2019) version I get the following notice in debug mode.

Notice: Undefined index: url while_parsing_page_form: default, pagenav_article_list

It seems like it's not processing this line: https://github.com/etc-plugins/etc_pagination/blob/master/etc_pagination.php#L87 or perhaps not even the callback to the function https://github.com/etc-plugins/etc_pagination/blob/master/etc_pagination.php#L82.

dmp-ing the output produces nothing.

If I shift the definition of $etc_pagination['url'] to the top of function etc_pagination after the global statement, the error is dismissed and dmp produces the correct context-specific url for the pagination links.

Long shot: might this have something to do with the new /textpattern/plugins directory? You mentioned some plugins might be affected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions