Can't post a new topic in newly created (& phpBB imported) forum

Started by itistoday, May 20, 2023, 11:37:49 AM

Previous topic - Next topic

itistoday

Hi, I just finished importing a phpBB forum and everything looks like it's imported OK but when I go to try to create a post with my admin account I get a blank white page and the error log says:

"PHP message: PHP Fatal error:  Uncaught TypeError: is_dir(): Argument #1 ($filename) must be of type string, array given in /var/www/forum.com/Sources/Subs-Attachments.php:343"
"Stack trace:"
"#0 /var/www/forum.com/Sources/Subs-Attachments.php(343): is_dir()"
"#1 /var/www/forum.com/Sources/Post.php(1703): processAttachments()"
"#2 /var/www/forum.com/index.php(191): Post2()"
"#3 {main}"
"  thrown in /var/www/forum.com/Sources/Subs-Attachments.php on line 343"

Here's how I created this forum:

  • I installed SMF 2.0.14
  • Uploaded the phpBB3 forum. Imported into mariadb/mysql the database
  • Gave the SMF db user access to the phpBB database
  • Used the phbBB32 converter tool to import the old forum
  • Upgraded first to 2.0.18 then to 2.1.3
  • Installed the following mods:
     
    • Global Headers Footers 2.1a
    • Quick Ban on Account Delete 1.1
    • Enhancements to purge inactive members 1.3.9
    • Stop Forum Spam 1.4
  • Switched from php7 to php8

Any ideas?

EDIT: I just switched back from php8 to php7... and that seems to have fixed it.

Is this a known bug with php8? I thought php8 worked?

itistoday

OK - I found out what the problem was.

Apparently the phpBB32 converter tool incorrectly set the attachments directory to "Array" (no quotes, just Array), and that was causing the forum to freak out whenever a post was being created.

Using the repair_settings.php tool I was able to override and fix that value and point it to the attachments folder.

The site now works again in both php7 and php8.

Advertisement: