Simple Machines Community Forum

SMF Support => Converting to SMF => phpBB => Topic started by: Bunkei on December 17, 2022, 04:23:16 AM

Title: http 500 error?
Post by: Bunkei on December 17, 2022, 04:23:16 AM
I get a http 500 error when running the converter after I installed SMF 2.0.19.  Any ideas?
Title: Re: http 500 error?
Post by: Aleksi "Lex" Kilpinen on December 17, 2022, 04:24:09 AM
Check your server's error log for details on the error.
Title: Re: http 500 error?
Post by: Bunkei on December 17, 2022, 12:27:25 PM
For privacy reasons, I removed some info and replaced it with "xxx".  I can PM you the entire thing if needs be.  Thank you so much in advance!

[client xx.xx.236.31:59438] mod_fcgid: stderr: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/vmnet/xxxxxx.net/smf/convert.php on line 2813
Title: Re: http 500 error?
Post by: Doug Heffernan on December 17, 2022, 12:32:07 PM
Quote from: Bunkei on December 17, 2022, 12:27:25 PMFor privacy reasons, I removed some info and replaced it with "xxx".  I can PM you the entire thing if needs be.  Thank you so much in advance!

[client xx.xx.236.31:59438] mod_fcgid: stderr: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/vmnet/xxxxxx.net/smf/convert.php on line 2813

This error means that curly braces method to get individual characters inside a string has been deprecated since php 7.4.

What is the code around line 2813 in the convert.php file? The solution would be to change curly braces {} to []
Title: Re: http 500 error?
Post by: Aleksi "Lex" Kilpinen on December 17, 2022, 01:21:21 PM
Alternatively, since that is probably not the only occurrence of such, you could downgrade PHP to a version that accepts it for the duration of the process.
Title: Re: http 500 error?
Post by: Bunkei on December 17, 2022, 05:38:19 PM
Quote from: Doug Heffernan on December 17, 2022, 12:32:07 PM
Quote from: Bunkei on December 17, 2022, 12:27:25 PMFor privacy reasons, I removed some info and replaced it with "xxx".  I can PM you the entire thing if needs be.  Thank you so much in advance!

[client xx.xx.236.31:59438] mod_fcgid: stderr: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/vmnet/xxxxxx.net/smf/convert.php on line 2813

This error means that curly braces method to get individual characters inside a string has been deprecated since php 7.4.

What is the code around line 2813 in the convert.php file? The solution would be to change curly braces {} to []

Thank you!  That worked for me!  Cheers ...
Title: Re: http 500 error?
Post by: Doug Heffernan on December 18, 2022, 05:43:42 AM
No problem. Glad to see that you converted successfuly to Smf.
Title: Re: http 500 error?
Post by: fpenasanz on December 27, 2022, 11:30:15 AM
Quote from: Bunkei on December 17, 2022, 05:38:19 PM
Quote from: Doug Heffernan on December 17, 2022, 12:32:07 PM
Quote from: Bunkei on December 17, 2022, 12:27:25 PMFor privacy reasons, I removed some info and replaced it with "xxx".  I can PM you the entire thing if needs be.  Thank you so much in advance!

[client xx.xx.236.31:59438] mod_fcgid: stderr: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/vmnet/xxxxxx.net/smf/convert.php on line 2813

I got the same issue, also solved following your instructions. Thanks a lot!

This error means that curly braces method to get individual characters inside a string has been deprecated since php 7.4.

What is the code around line 2813 in the convert.php file? The solution would be to change curly braces {} to []

Thank you!  That worked for me!  Cheers ...

I had the same issue. Solved as well! Thanks a lot. Best regards