Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
Fogbow_Foggy
Registered User
Posts: 198
Joined: Sun Sep 26, 2010 11:25 pm
Location: Raleigh, North Carolina

Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Post by Fogbow_Foggy »

Here are the errors I'm getting. I will try to edit /vendor/composer yadda yadda to comment out line 576, but does anyone know what is causing this problem? Here are the PHP errors I'm getting:

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/composer/ClassLoader.php on line 576: include([ROOT]/vendor/composer/../s9e/text-formatter/src/Configurator/RendererGenerators/PHP/XPathConvertor/Convertors/BooleanFunctions.php): Failed to open stream: No such file or directory

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/composer/ClassLoader.php on line 576: include(): Failed opening '[ROOT]/vendor/composer/../s9e/text-formatter/src/Configurator/RendererGenerators/PHP/XPathConvertor/Convertors/BooleanFunctions.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear')
Last edited by Fogbow_Foggy on Tue Apr 15, 2025 11:10 am, edited 1 time in total.
In my defense, I was left unsupervised.
User avatar
Fogbow_Foggy
Registered User
Posts: 198
Joined: Sun Sep 26, 2010 11:25 pm
Location: Raleigh, North Carolina

Re: Update to 3.3.15 success, but PHP errors, my site is gone

Post by Fogbow_Foggy »

Here are the last few lines of the file ClassLoader.php that's causing the problem, but I don't understand it or what went wrong. Remember, my ACP works fine and says I have updated my site to 3.3.15. But my site has only the PHP errors. When I commented out line 576 (include $file) I got a 500 error for a website. Please, i have users all over the globe who are waiting for us to get back online again.

Code: Select all

        /**
         * Scope isolated include.
         *
         * Prevents access to $this/self from included files.
         *
         * @param  string $file
         * @return void
         */
        self::$includeFile = \Closure::bind(static function($file) {
 576           include $file;
        
        }, null, null);

    }
}
In my defense, I was left unsupervised.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6770
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Update to 3.3.15 success, but PHP errors, my site is gone

Post by thecoalman »

That error is telling you the file is missing, Delete vendor folder and re-upload it.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Fogbow_Foggy
Registered User
Posts: 198
Joined: Sun Sep 26, 2010 11:25 pm
Location: Raleigh, North Carolina

Re: Update to 3.3.15 success, but PHP errors, my site is gone

Post by Fogbow_Foggy »

I deleted my vendor folder and downloaded a fresh copy of 3.3.15.zip. I'll unpack that and upload the vendor folder.
In my defense, I was left unsupervised.
User avatar
Fogbow_Foggy
Registered User
Posts: 198
Joined: Sun Sep 26, 2010 11:25 pm
Location: Raleigh, North Carolina

Re: Update to 3.3.15 success, but PHP errors, my site is gone

Post by Fogbow_Foggy »

That apparently did it, my board is back online (thefogbow.com/forum), but I will check everything I can for a while to make sure.
In my defense, I was left unsupervised.
User avatar
Fogbow_Foggy
Registered User
Posts: 198
Joined: Sun Sep 26, 2010 11:25 pm
Location: Raleigh, North Carolina

Re: Update to 3.3.15 success, but PHP errors, my site is gone

Post by Fogbow_Foggy »

Perfect. I use FileZilla SFTP, I don't know how it could have missed a file the first time, but whatever, the problem is fixed and I owe you a great deal of thanks, thecoalman. So thanks, and thanks again. This topic is finished.
In my defense, I was left unsupervised.
User avatar
Mike-on-Tour
Registered User
Posts: 574
Joined: Wed Jan 15, 2020 3:51 pm
Location: Germany
Name: Michael

Re: Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Post by Mike-on-Tour »

You need to transfer files with FileZilla using the binary mode otherwise you can get random errors such as the one you experienced.
Watz fo lunch?
If you like my extensions or my support please consider a donation: Image
User avatar
invenio
Registered User
Posts: 474
Joined: Wed Dec 09, 2015 1:45 pm
Location: New Hampshire, USA

Re: Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Post by invenio »

When using Filezilla in SFTP mode it defaults to binary mode regardless of the settings. With FTP mode you are correct that it should be set to binary mode.

Just commenting as it's unlikely that the root of OP's problem was a Filezilla transfer mode setting as he was using SFTP.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6770
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Post by thecoalman »

Mike-on-Tour wrote: Tue Apr 15, 2025 1:04 pm You need to transfer files with FileZilla using the binary mode otherwise you can get random errors such as the one you experienced.
It's not some random error, it's specific to the attachments in the file folder because they have no extensions. Every FTP client on the planet defaults to binary when there is no extension except Filezilla. This corrupts a binary file when transferred in ASCII mode, you can safely transfer ASCII files with binary mode.

As side note when using SFTP as the OP indicates there is no option but binary mode.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
LukeWCS
Registered User
Posts: 309
Joined: Mon Dec 08, 2014 12:32 pm
Location: Germany

Re: Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Post by LukeWCS »

thecoalman wrote: Tue Apr 15, 2025 4:04 pm Every FTP client on the planet defaults to binary when there is no extension except Filezilla.
That was very nicely worded. ;) My thoughts back then, when I became aware of this switch during a support case on phpBB.de, were definitely not politically correct.

If the file format is unknown, leave the file unchanged and transfer it 1:1. Anything else is [self-censorship].

There are other default settings that can cause transfer problems for some users, as we have discovered during several support cases. We have a dedicated article for this. Here is the relevant part translated:

The following are the necessary settings changes:
  • Edit > Settings > Transfers > Limit for concurrent downloads: 1
  • Edit > Settings > Transfers > Limit for concurrent uploads: 1
  • Edit > Settings > Transfers > FTP: FIle types > Default transfer type: Binary
edit: What I forgot to mention: the first two default settings mentioned "can" cause two different problems with a value 0 or >1, which we have observed in several support cases:
  • Some files can be transferred empty (0 bytes).
  • Some files aren't transferred at all.
Last edited by LukeWCS on Tue Apr 15, 2025 9:03 pm, edited 3 times in total.
May the backup be with you. Always.
User avatar
invenio
Registered User
Posts: 474
Joined: Wed Dec 09, 2015 1:45 pm
Location: New Hampshire, USA

Re: Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Post by invenio »

The concurrent upload and download of setting to "1" must not be a consistent issue (or server dependent) as I have always done multiple connections with simultaneous downloads/uploads with my hosts and never had an issue.
User avatar
LukeWCS
Registered User
Posts: 309
Joined: Mon Dec 08, 2014 12:32 pm
Location: Germany

Re: Update to 3.3.15 success, but PHP errors, my site is gone - RESOLVED

Post by LukeWCS »

invenio wrote: Tue Apr 15, 2025 7:44 pm The concurrent upload and download of setting to "1" must not be a consistent issue (or server dependent)
Yes, that's why I wrote "for some users". Therefore, we generally recommend changing these settings to eliminate or reduce these potential problems.

I have listed the problems that can be caused by the first two settings in my previous post via an edit.
May the backup be with you. Always.

Return to “[3.3.x] Support Forum”