[solved] 3.2.2 to 3.2.4 Update: app.php returns http error 500

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

[solved] 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sat Dec 08, 2018 10:30 pm

I have a running 3.2.2 board located here: https://www.proaudiodesignforum.com/for ... um.php?f=1

I've uploaded 3.2.4 as a full package using the update strategy here: https://www.phpbb.com/support/documents ... pdate_full

The only difference in strategy is I'm not overwriting old files.
3.2.4 is written to a different directory temporarily called /forum_324/
By appending the new version number to /forum I can avoid overwriting files.
When I get ready to run the new installation, I rename /forum to /forum_322 - to disable it - and rename /forum_324 to /forum to enable it.
If it blows up I can switch back easily.

I did the 3.2.1 to 3.2.2 update this way and left the 3.2.1 installation abandoned but intact in case their were problems.

Both subdirectories hold the old forum's /files /images /store config.php and .htaccess
The new forum holds the new /vendor and /cache folders.
There are no extensions or mods, the style is ProSilver and the language British English.

This strategy has worked and served me well in the past.
If the new installation fails prior to updating the dbf I can simply rename the directories to switch them back.
If the dbf update fails I'm still not knee-deep and can do a dbf restore from a backup.
Its an un-invasive approach and it was needed today.

The Problem

After placing the new installation in the /forum/php/ path when I navigate to /forum/php/install/ it redirects to app.php as expected but renders a blank page in Firefox or http 500 errors in Chrome. I've also tried /forum/php/install/app.php/update and the results are the same.

I never see a page rendered that will allow me to update the dbf.

I've seen the post regarding blank pages using extensions. My board has no mods or extensions, is running ProSilver and British English.

EDIT: Oh, and one more thing: I deleted the lock and migration files in /store but it didn't make any difference.

Ideas?
Last edited by citroen on Sun Dec 09, 2018 5:02 pm, edited 1 time in total.
Logic will take you from A to B. Imagination will take you anywhere.

User avatar
3Di
Registered User
Posts: 13097
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by 3Di » Sat Dec 08, 2018 11:18 pm

Your Board is not under /forum/ but under /forum/php/, therefore you should do your "un-invasive approach" renaming

/forum/php/ to /forum/php2/ or whatever you like it should be.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sat Dec 08, 2018 11:37 pm

Thanks for the advice. I think the renamed paths are correct. This is the structure with the old forum active:

Image

I tried renaming both forum and the php subdirectory as you suggest but it made no difference.

For example Making /forum/php become /forum_322/php2

and /forum_324/php become /forum/php still returns an http 500 error.

How would mydomain.com/forum/php/install ever redirect to app.php if it were wrong?

Clearly index.html in the new forum path is being processed and redirecting to app.php - in the old original directory the /install folder has been renamed and index.html is not being processed.

EDIT: WIth the existing forum running in place I also tried seeing what happens when /forum_324/php/install is accessed.

It also returns an http 500 error. But if I change the index.html to an index.html file that says "hello" it renders.

So its not a path issue. index.html redirects to app.php which isn't producing a page...
Logic will take you from A to B. Imagination will take you anywhere.

User avatar
3Di
Registered User
Posts: 13097
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by 3Di » Sat Dec 08, 2018 11:55 pm

That should be

Code: Select all

- forum
---- php
---- php2
I mean you "forum" is under "php" so "php" is the Board which contains fora/ums.

Am I missing something?

https://www.proaudiodesignforum.com/forum/php/install/ clearly states there isn't the install folder.

https://www.proaudiodesignforum.com/forum_324/php/install/app.php clearly throws a 500.

.
Screenshot_1.png
Last edited by 3Di on Sun Dec 09, 2018 12:02 am, edited 1 time in total.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sun Dec 09, 2018 12:00 am

3Di wrote:
Sat Dec 08, 2018 11:55 pm
Am I missing something?
I think so, but probably because I'm not being clear. Hopefully the file tree will clear up the confusion.

Image

My 3.2.4 installation at this point is completely independent of the other forum.
(At least until the point I'm able to run install.)
https://www.proaudiodesignforum.com/forum/php/install/ clearly states there isn't the install folder.
And there shouldn't be because I rolled the site back to 3.2.2.
Which is the problem. If it didn't throw a 500 and worked I'd be renaming the old forum to /forum_322 to break it and rename /forum_324 to /forum in order to run install.

If I put a test index.html file in that subdirectory instead of redirecting it to app.php it displays.
Last edited by citroen on Sun Dec 09, 2018 12:10 am, edited 1 time in total.
Logic will take you from A to B. Imagination will take you anywhere.

User avatar
3Di
Registered User
Posts: 13097
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by 3Di » Sun Dec 09, 2018 12:09 am

See above. Again, try this way..

Code: Select all

- forum
---- php
---- php2
Like playing just with the php folder's names, both located under /forum/.

As you see your logic isn't working, that's why you're asking for support.
Now let the support come to you and please don't tell the "support" how things have to work. :)
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sun Dec 09, 2018 12:21 am

I put an index.html file in this path which does not redirect to app.php

http://proaudiodesignforum.com/forum_324/php/install/

It displays. Try it after a cache clear.

I'll try changing the php portion of the path as you suggest.

Are you asking me to put both sets of code under /forum

old as forum/php2/; new as forum/php/?

My logic, as far as using path names as a "switch" does work.
It may not work with the installation scripts, but the logic works.
Not finding an /install folder in the old forum shows that it does.
Having an html file not redirecting to app.php which display also shows that it does.

Now if you want me to try moving files to place both under /forum and use /php /php2 as a switch I'm willing to try it.
For that I defer to your experience and troubleshooting skills.
Logic will take you from A to B. Imagination will take you anywhere.

User avatar
3Di
Registered User
Posts: 13097
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by 3Di » Sun Dec 09, 2018 12:35 am

First, remove any and all additions/removals of files you have made so far.
Then try my suggestion, it would not be a question to answer but yes.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sun Dec 09, 2018 12:44 am

Ok renamed the directories with both under /forum

/forum/php (new 3.2.4)
/forum/php2 (old 3.2.2)

New install path is thus https://www.proaudiodesignforum.com/for ... ll/app.php

Still throws off a 500.

I'm going to have to revert this back after testing now it to bring my forum back up.
If you follow that link in a minute or two it will be as it was before the change.
Logic will take you from A to B. Imagination will take you anywhere.

User avatar
3Di
Registered User
Posts: 13097
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by 3Di » Sun Dec 09, 2018 12:53 am

Ok, revert it back but the following structure still have to stay.

/forum/php (live board)
/forum/php2 (new 3.2.4)
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sun Dec 09, 2018 12:57 am

3Di wrote:
Sun Dec 09, 2018 12:35 am
First, remove any and all additions/removals of files you have made so far.
Then try my suggestion, it would not be a question to answer but yes.
I did try that suggestion by moving the 3.2.4 files to /php2 then renaming both so that 3.2.4 is under /php and /php2 is 3.2.2. Both are under /forum.
(At no point in the renaming process do they have the same name.)

About the only other thing I can do to follow your suggestion more closely is to delete all 3.2.4 files and reload them.
But I can't load them into /forum/php without blowing up the forum that I know works (3.2.2) with one that won't install (3.2.4).

Total Commander shows the server and local copies of 3.2.4 have the exact same structure.
Ok, revert it back but the following structure still have to stay.

/forum/php (live board)
/forum/php2 (new 3.2.4)
Great. That will break thousands of links indexed by Google et al.
Looks like this board will never be upgraded.

And it still stays broken throwing off a 500: http://proaudiodesignforum.com/forum/php2/install/
Logic will take you from A to B. Imagination will take you anywhere.

User avatar
3Di
Registered User
Posts: 13097
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by 3Di » Sun Dec 09, 2018 1:02 am

/forum/php (live board)
citroen wrote:
Sun Dec 09, 2018 12:57 am
Great. That will break thousands of links indexed by Google et al.
Are you following?
citroen wrote:
Sat Dec 08, 2018 10:30 pm
I have a running 3.2.2 board located here: https://www.proaudiodesignforum.com/forum/php/viewforum.php?f=1
Follow, don't take any more action, otherwise we'll keep going in circles.

On a side note: use a 503 in .htaccess while doing maintenance
https://gist.github.com/3D-I/8fb88dc810 ... 675a4b926f
About the only other thing I can do to follow your suggestion more closely is to delete all 3.2.4 files and reload them.
Not really. The "php2" folder's content should be totally "erased" and a carbon copy of "php" should be copied inside of it.

Once done, disable the "php" board. To avoid inconsistencies in the data.

And follow this steps:

https://www.phpbb.com/support/docs/en/3 ... ating-32x/

I know you'd like to avoid it, but I see that we're going around in circles and the only way to solve this problem is by doing so. Otherwise we find ourselves with a topic that is 50 pages long and full of useless efforts.

Good job.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sun Dec 09, 2018 1:39 am

I think I follow you but I'm not sure.

I understand that we want 3.2.4 to live in /forum/php2 for test so that it remains uninvasive until the point of installation.

As it stands /forum/php is V3.2.2 and /forum/php2 is V3.2.4.

So nothing's broken while this is sorted out.
Ultimately 3.2.4 would need to run under the original 3.2.2 path; not only due to indexing but old embedded links in other fora. It would be one more redirect I'd rather not have to do.

Install should just run.

But...http://proaudiodesignforum.com/forum/php2/install should produce a page.
/install/index.html does process...something in app.php is running off the rails.
In upgrading/updating phpBB for 11 years I've never seen /install not run.

I used this very same strategy moving from 3.2.1 to 3.2.2 without incident (other than changing to mysqli).

Other than config.php referencing the same dbf, 3.2.4 should install, and run, as an independent board since it resides in its own sub-directory.
Logic will take you from A to B. Imagination will take you anywhere.

citroen
Registered User
Posts: 41
Joined: Sat Aug 11, 2007 1:32 pm
Location: Dallas, Texas
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by citroen » Sun Dec 09, 2018 1:50 am

OK, I didn't see the additions to your last post.

I think I've got what you're getting at. I'll clone the \php folder as \php2.
Use \php2 for rollback.
Overwrite in \php V3.2.2 files with V3.2.4 per KB article.
Then run install.
Logic will take you from A to B. Imagination will take you anywhere.

User avatar
3Di
Registered User
Posts: 13097
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2.2 to 3.2.4 Update: app.php returns http error 500

Post by 3Di » Sun Dec 09, 2018 2:30 am

citroen wrote:
Sun Dec 09, 2018 1:50 am
OK, I didn't see the additions to your last post.

I think I've got what you're getting at. I'll clone the \php folder as \php2.
Use \php2 for rollback.
Overwrite in \php V3.2.2 files with V3.2.4 per KB article.
Then run install.
That's not perfectly right.
1)
Don't forget to disable /php/ to avoid inconsistencies in the data.
(or put there a 503 as per my above post)

2)
Overwrite Upload in \php V3.2.2 files with V3.2.4 as per KB article.
You need to change in its ACP the path to like "../forum/php2/" in order to work
If works disable aslo this one in acp, since you are authed you still have access to the board.

---------------
Now you have a "carbon_copy" in php2
---------------

3)
Now..
Once the 3.2.4 files have been uploaded over there as per KB article, you should be able to browse to
http://proaudiodesignforum.com/forum/php2/install/

----- NOTE --------------------------
If still you are getting a 500, well... a 500 it's a kind of an obscure error, it is a server error.
Therefore you want to lurk at your "server's logs" in order to have a clue.
There is nothing we can do against a 500 if no error log is available, that will be a good question for your host.
---------------------------------------

4)
Instead, if success:
- 1- change "php" to "php-322" or whatever. (rename your live old board to an archived one)
- 2 - change "php2" to "php" (go live with the new 3.2.4)
- 3 - change in its ACP the path back to like "../forum/php/" in order to work
- 4 - for completeness: change cookie's "name"

I think I haven't forgot "steps" during this trip.
Written by memory and based on experience.

Let us know, if you so wish. Have a beer.. :)
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 19 guests