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

Fatal error when opening a board #294

Closed
NanoSector opened this issue Feb 12, 2013 · 4 comments
Closed

Fatal error when opening a board #294

NanoSector opened this issue Feb 12, 2013 · 4 comments

Comments

@NanoSector
Copy link
Contributor

I got a fatal error when opening a board in SMF 2.1, from the GitHub repo.

Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of call_integration_hook(). in /var/www/smf2.1/Sources/MessageIndex.php on line 665

Line is this:

call_integration_hook('integrate_messageindex_buttons', &$context['normal_buttons']);

Removing the & sign worked for me and fixed the error.

Using PHP 5.4.6 with Apache 2.

@NanoSector
Copy link
Contributor Author

Arantor just posted a solution:

call_integration_hook('integrate_messageindex_buttons', array(&$context['normal_buttons']));

http://www.simplemachines.org/community/index.php?topic=497341.msg3489424#msg3489424

@emanuele45
Copy link
Contributor

Duplicate of #54

@emanuele45
Copy link
Contributor

Yups, sorry: slightly different, you are right.

@emanuele45 emanuele45 reopened this Feb 12, 2013
@Arantor
Copy link
Contributor

Arantor commented Sep 27, 2013

This looks like it's fixed since it is correctly passing an array containing a reference...

@Arantor Arantor closed this as completed Sep 27, 2013
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

3 participants