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

split() method deprecated as of PHP 5.3.0, failing rss_parse.inc #13

Open
rjs-dux opened this issue Jun 17, 2021 · 0 comments
Open

split() method deprecated as of PHP 5.3.0, failing rss_parse.inc #13

rjs-dux opened this issue Jun 17, 2021 · 0 comments

Comments

@rjs-dux
Copy link

rjs-dux commented Jun 17, 2021

I just resolved an issue which was totally breaking my RSS reader page:
the split() method is deprecated as of PHP 5.3.0 (https://www.php.net/manual/ro/function.split.php#:~:text=split()%20is%20deprecated%20as,of%20the%20regular%20expression%20engine.); which produces an error in the file 'rss_parse.inc' (which would show up in the browser console as a generic 500 error when trying to read a specific RSS feed - although the error_log file stored on the server would contain the detailed error description).
the solution is to just replace:
list($ns, $el) = split( ':', $element, 2);
with
list($ns, $el) = explode( ':', $element, 2);

EDIT: oops, just saw that the file was edited years ago in this repo on git; I made the comment in reference to the project archive I checked on sourceforge: https://sourceforge.net/projects/magpierss/ - perhaps you want to update it there as well

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

No branches or pull requests

1 participant