Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal string offset '_elem' in action.php on line 205 / 231 #35

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

hh-lohmann
Copy link

CORRECTED solution: simple PHP break does not do the full job, we need to check all $ref items (a) for the whole foreach body concerning handle_recent, and (b) for the if clause that sets $member but not for the whole foreach body concerning `handle_revisions

See also https://www.dokuwiki.org/plugin:publish#error_when_using_the_old_revisions_view

solution: put the following line at the begin of the foreach loop starting in line 204:

`if ( !isset ( $ref ['_elem'] ) ) { break ; }`

See also https://www.dokuwiki.org/plugin:publish#error_when_using_the_old_revisions_view
solution: put the following line at the begin of the foreach loop starting in line 230 or 231 (inside "handle_recent"):

`if ( !isset ( $ref ['_elem'] ) ) { break ; }`
@hh-lohmann hh-lohmann changed the title Illegal string offset '_elem' in action.php on line 205 Illegal string offset '_elem' in action.php on line 205 / 231 May 21, 2014
hh-lohmann and others added 4 commits May 21, 2014 10:51
sorry, simple PHP break dos not do the full job, we need to check all `$ref` items in the `if` clause that sets `$member` BUT ONLY FOR THIS, not for the whole foreach body

See also https://www.dokuwiki.org/plugin:publish#error_when_using_the_old_revisions_view
…RRECTION

sorry, simple PHP break does not do the full job, we need to check all `$ref`, and that for the whole foreach body
…le_recent

action.php: isset check for $meta['last_change']['date'] @ handle_recent
@samwilson
Copy link
Contributor

+1

1 similar comment
@vilkh3m
Copy link

vilkh3m commented Feb 9, 2015

+1

@splitbrain
Copy link
Member

this patch no longer applies to master. could you update it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants