Jump to content
#StayAtHome ×
dil_bert

how to debug the phpBB-forum software: i allways get 500 error

Recommended Posts

hello dear all,

 

how to debug the phpBB-forum software: i allways get   500 error 

tried to do a fresh install of phpBB on php version 7.4.2 

got the error 
SPL support enabled

Interfaces OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException

 

now the admin of the server downgraded to php 7.2.8 

 

note: i did not have installed the phpBB  

there a phpBB version 3.3 is on the server. But - yes: it is not installed yet!

at the moment i get  a 500 error 

how to debug phpbb!? 

are there any ways and methods to get more insights what is going on on the server!?

Share this post


Link to post
Share on other sites

update: found some ideas about the debug-mode: 


1. go to the file 

config/production/config.yml

2. add the following stuff

	parameters:
    debug.load_time: true
    debug.sql_explain: true
    debug.memory: true
    debug.show_errors: true
    debug.exceptions: true 
	imports:
    - { resource: ../default/config.yml }
parameters:
    debug.load_time: true
    debug.sql_explain: true
    debug.memory: true
    debug.show_errors: true
    debug.exceptions: true

Share this post


Link to post
Share on other sites

500 error? Go to the error log.

500 error? Go to the error log.

500 error? Go to the error log.

Share this post


Link to post
Share on other sites

hello dear Requinix 

 

i did it - i had a closer look at the logs. 

btw:  the server is no a bit more stable and the errors on the Wordpress /(open_basedir restriction in effect. File(/) is not within the allowed path(s): )


note: we Modified the open_basedir settings in our hosting account and set them better. 
We corrected the open_basedir setting given under 'PHP Settings' area on our server. 
To resolve this error we edited the file httpd.conf. 
Way before it can be seen in phpinfo in apache2handler section directive Server Root. 
For example, in my case this way - / etc / httpd / httpd.conf. 


so the wordpress on the same server - is running good - with no errors and no issues at all.
but i have issues with a vhost - where i did not have installed the phpBB version 3.3.0 which resides on that server:


again: as mentioned above - i struggle with some facts that i encountered - the file-structure of the phpBB 3,3: well this is extraordinary confusing and disturbing... 

with the phpBB version 3.3 xy we have a annoying file and folder structure 


just have a closer look what we have the following listing: 

/sites/www.wp-forum.net/install/

with the folders 
/convert/
/convertors/
/shemas/

and the files 

app.php


and we have the following: 

/sites/www.wp-forum.net/phpbb/install

with 

/controll
/console
/event
/exception
/helper 
/module

installer.php 

that looks pretty insane - i wonder why we have install - two times


[php7:error] [pid 9543] [client 37.138.118.127:61431] PHP Fatal error:  Uncaught Exception: Cannot open source device in /sites/www.wp-forum.net/includes/functions.php:70\nStack trace:\n#0 /sites/www.wp-forum.net/includes/functions.php(70): random_int(0, 35)\n#1 /sites/www.wp-forum.net/includes/functions.php(106): gen_rand_string(16)\n#2 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(202): unique_id()\n#3 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(186): phpbb\\template\\twig\\environment->display_with_assets('installer_main....', Array)\n#4 /sites/www.wp-forum.net/phpbb/template/twig/twig.php(335): phpbb\\template\\twig\\environment->render('installer_main....', Array)\n#5 /sites/www.wp-forum.net/phpbb/install/controller/helper.php(145): phpbb\\template\\twig\\twig->assign_display('body')\n#6 /sites/www.wp-forum.net/phpbb/install/event/kernel_exception_subscriber.php(86): phpbb\\install\\controller\\helper->render('installer_main....', 'Information', false, 500)\n#7 /sites/www.wp-forum.net/vendor/symfony/event-dispatcher/EventDispatcher.php(214): phpbb\\install\\event\\kern in /sites/www.wp-forum.net/includes/functions.php on line 70
[Fri Feb 14 20:19:07.436913 2020] [php7:error] [pid 9543] [client 94.217.101.253:38736] PHP Fatal error:  Uncaught Exception: Cannot open source device in /sites/www.wp-forum.net/includes/functions.php:70\nStack trace:\n#0 /sites/www.wp-forum.net/includes/functions.php(70): random_int(0, 35)\n#1 /sites/www.wp-forum.net/includes/functions.php(106): gen_rand_string(16)\n#2 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(202): unique_id()\n#3 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(186): phpbb\\template\\twig\\environment->display_with_assets('installer_main....', Array)\n#4 /sites/www.wp-forum.net/phpbb/template/twig/twig.php(335): phpbb\\template\\twig\\environment->render('installer_main....', Array)\n#5 /sites/www.wp-forum.net/phpbb/install/controller/helper.php(145): phpbb\\template\\twig\\twig->assign_display('body')\n#6 /sites/www.wp-forum.net/phpbb/install/event/kernel_exception_subscriber.php(86): phpbb\\install\\controller\\helper->render('installer_main....', 'Information', false, 500)\n#7 /sites/www.wp-forum.net/vendor/symfony/event-dispatcher/EventDispatcher.php(214): phpbb\\install\\event\\kern in /sites/www.wp-forum.net/includes/functions.php on line 70

 dear requnix, - i have to digg deeper into all that - so that i can find out 
what i need to 

a. correct on the server (-configuration)
b. can do on the server 
c. find out more insights - in using a clever debug mode or something thelike...

look forward to hear from you

Share this post


Link to post
Share on other sites
20 hours ago, dil_bert said:

that looks pretty insane - i wonder why we have install - two times

I don't.

You have no business trying something like installing software on a server. But I can't stop you. So if you're going to anyway, don't do anything except what the installation guides tell you to do. Don't touch files, don't go snooping around for stuff you won't understand, just forget it all exists and follow the steps to install.

20 hours ago, dil_bert said:

 


[php7:error] [pid 9543] [client 37.138.118.127:61431] PHP Fatal error:  Uncaught Exception: Cannot open source device in /sites/www.wp-forum.net/includes/functions.php:70\nStack trace:\n#0 /sites/www.wp-forum.net/includes/functions.php(70): random_int(0, 35)\n#1 /sites/www.wp-forum.net/includes/functions.php(106): gen_rand_string(16)\n#2 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(202): unique_id()\n#3 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(186): phpbb\\template\\twig\\environment->display_with_assets('installer_main....', Array)\n#4 /sites/www.wp-forum.net/phpbb/template/twig/twig.php(335): phpbb\\template\\twig\\environment->render('installer_main....', Array)\n#5 /sites/www.wp-forum.net/phpbb/install/controller/helper.php(145): phpbb\\template\\twig\\twig->assign_display('body')\n#6 /sites/www.wp-forum.net/phpbb/install/event/kernel_exception_subscriber.php(86): phpbb\\install\\controller\\helper->render('installer_main....', 'Information', false, 500)\n#7 /sites/www.wp-forum.net/vendor/symfony/event-dispatcher/EventDispatcher.php(214): phpbb\\install\\event\\kern in /sites/www.wp-forum.net/includes/functions.php on line 70
[Fri Feb 14 20:19:07.436913 2020] [php7:error] [pid 9543] [client 94.217.101.253:38736] PHP Fatal error:  Uncaught Exception: Cannot open source device in /sites/www.wp-forum.net/includes/functions.php:70\nStack trace:\n#0 /sites/www.wp-forum.net/includes/functions.php(70): random_int(0, 35)\n#1 /sites/www.wp-forum.net/includes/functions.php(106): gen_rand_string(16)\n#2 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(202): unique_id()\n#3 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(186): phpbb\\template\\twig\\environment->display_with_assets('installer_main....', Array)\n#4 /sites/www.wp-forum.net/phpbb/template/twig/twig.php(335): phpbb\\template\\twig\\environment->render('installer_main....', Array)\n#5 /sites/www.wp-forum.net/phpbb/install/controller/helper.php(145): phpbb\\template\\twig\\twig->assign_display('body')\n#6 /sites/www.wp-forum.net/phpbb/install/event/kernel_exception_subscriber.php(86): phpbb\\install\\controller\\helper->render('installer_main....', 'Information', false, 500)\n#7 /sites/www.wp-forum.net/vendor/symfony/event-dispatcher/EventDispatcher.php(214): phpbb\\install\\event\\kern in /sites/www.wp-forum.net/includes/functions.php on line 70

 

You probably messed something up. Delete all the files and start over again.

Share this post


Link to post
Share on other sites

hello dear 

according to this instruction 

https://www.phpbb.com/community/docs/INSTALL.html


i have to say :  this is pretty funny - . so called double bind instructions.... like so


a. do this 
b. do not this 

just have a closer look at this instrcutions.. 


Once all the files have been uploaded to your site, you should point your browser at this location with the addition of /install/. 
For example, if your domain name is www.example.com and you placed the phpBB files in the directory /phpBB3 off your web 
root you would enter 

http://www.wp-forum.net/phpBB3/install/
http://www.wp-forum.net/phpBB3/install/app.php

into your browser. When you have done this, you should see the phpBB Introduction screen appear.
 

well - to be frank - i start over again -  but this file structure and these instructions are not good - all can be misunderstood

this is so bad bad bad.. and we can say - these instructions are messed up totally

 

again:  uplpoad and start over...

 

 

Share this post


Link to post
Share on other sites

good day dear requnix

 

thanks for your help...  - thanks for sharing your ideas.

i did a fresh install. 

i installed the phpBB version 3.3.0 
i still get the following errors..: 

[Sun Feb 16 16:39:10.382324 2020] [php7:error] [pid 30171] [client 62.158.95.208:56223] PHP Fatal error:  Uncaught Exception: Cannot open source device in /sites/www.wp-forum.net/includes/functions.php:70\nStack trace:\n#0 /sites/www.wp-forum.net/includes/functions.php(70): random_int(0, 35)\n#1 /sites/www.wp-forum.net/includes/functions.php(106): gen_rand_string(16)\n#2 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(202): unique_id()\n#3 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(186): phpbb\\template\\twig\\environment->display_with_assets('installer_main....', Array)\n#4 /sites/www.wp-forum.net/phpbb/template/twig/twig.php(335): phpbb\\template\\twig\\environment->render('installer_main....', Array)\n#5 /sites/www.wp-forum.net/phpbb/install/controller/helper.php(145): phpbb\\template\\twig\\twig->assign_display('body')\n#6 /sites/www.wp-forum.net/phpbb/install/event/kernel_exception_subscriber.php(86): phpbb\\install\\controller\\helper->render('installer_main....', 'Information', false, 500)\n#7 /sites/www.wp-forum.net/vendor/symfony/event-dispatcher/EventDispatcher.php(214): phpbb\\install\\event\\kern in /sites/www.wp-forum.net/includes/functions.php on line 70, referer: http://www.wp-forum.net/install/
[Sun Feb 16 16:59:53.138118 2020] [core:error] [pid 30171] (13)Permission denied: [client 62.158.95.208:57141] AH00035: access to /phpBB/install/ denied (filesystem path '/sites/www.literaturen.org/phpBB') because search permissions are missing on a component of the path
[Sun Feb 16 16:59:53.241618 2020] [core:error] [pid 30171] (13)Permission denied: [client 62.158.95.208:57141] AH00035: access to /favicon.ico denied (filesystem path '/sites/www.literaturen.org/favicon.ico') because search permissions are missing on a component of the path, referer: http://wp-forum.net/phpBB/install/
[Sun Feb 16 17:00:04.609242 2020] [php7:error] [pid 30170] [client 62.158.95.208:57138] PHP Fatal error:  Uncaught Exception: Cannot open source device in /sites/www.wp-forum.net/includes/functions.php:70\nStack trace:\n#0 /sites/www.wp-forum.net/includes/functions.php(70): random_int(0, 35)\n#1 /sites/www.wp-forum.net/includes/functions.php(106): gen_rand_string(16)\n#2 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(202): unique_id()\n#3 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(186): phpbb\\template\\twig\\environment->display_with_assets('installer_main....', Array)\n#4 /sites/www.wp-forum.net/phpbb/template/twig/twig.php(335): phpbb\\template\\twig\\environment->render('installer_main....', Array)\n#5 /sites/www.wp-forum.net/phpbb/install/controller/helper.php(145): phpbb\\template\\twig\\twig->assign_display('body')\n#6 /sites/www.wp-forum.net/phpbb/install/event/kernel_exception_subscriber.php(86): phpbb\\install\\controller\\helper->render('installer_main....', 'Information', false, 500)\n#7 /sites/www.wp-forum.net/vendor/symfony/event-dispatcher/EventDispatcher.php(214): phpbb\\install\\event\\kern in /sites/www.wp-forum.net/includes/functions.php on line 70, referer: http://www.wp-forum.net/install/
[Sun Feb 16 17:01:06.889713 2020] [php7:error] [pid 3380] [client 62.158.95.208:57155] PHP Fatal error:  Uncaught Exception: Cannot open source device in /sites/www.wp-forum.net/includes/functions.php:70\nStack trace:\n#0 /sites/www.wp-forum.net/includes/functions.php(70): random_int(0, 35)\n#1 /sites/www.wp-forum.net/includes/functions.php(106): gen_rand_string(16)\n#2 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(202): unique_id()\n#3 /sites/www.wp-forum.net/phpbb/template/twig/environment.php(186): phpbb\\template\\twig\\environment->display_with_assets('installer_main....', Array)\n#4 /sites/www.wp-forum.net/phpbb/template/twig/twig.php(335): phpbb\\template\\twig\\environment->render('installer_main....', Array)\n#5 /sites/www.wp-forum.net/phpbb/install/controller/helper.php(145): phpbb\\template\\twig\\twig->assign_display('body')\n#6 /sites/www.wp-forum.net/phpbb/install/event/kernel_exception_subscriber.php(86): phpbb\\install\\controller\\helper->render('installer_main....', 'Information', false, 500)\n#7 /sites/www.wp-forum.net/vendor/symfony/event-dispatcher/EventDispatcher.php(214): phpbb\\install\\event\\kern in /sites/www.wp-forum.net/includes/functions.php on line 70, referer: http://www.wp-forum.net/install/

.....according to this installation-instructions - this offers misleading and disturbin information..: 

https://www.phpbb.com/community/docs/INSTALL.html


they want you to do the installation with the following paths 

http://www.wp-forum.net/install/
http://www.wp-forum.net/phpBB3/install/
http://www.wp-forum.net/phpBB3/install/app.php
http://www.wp-forum.net/phpBB3/install/app.php


but they do not exist at all: we do not have the following path - called mydomain.com/phpbb3 - this is just disturbing. well i wonder why this installation-instruction does not meet the real conditions and facts. 


http://www.wp-forum.net/install/
http://www.wp-forum.net/phpBB/install/
http://www.wp-forum.net/phpBB/install/app.php
http://www.wp-forum.net/phpBB/install/app.php


by the way: i use for the unzip the WinRAR 5.71 !?

note this is a testversion - for only 40 days. these 40 days are gone.. 

are the issue probably rootet in the WinRAR 5.71!?  Could / should i try to do the unzip with another tool!?

love to hear from you

Share this post


Link to post
Share on other sites

Installed xampp (version 1.8.2 ) on my win-7 notebook  and started it

all runs well  -  xampp runs 

put  a new version 3-3-0 to the folder board: 

but  see what i  got back: 

http://localhost/xampp/board/install/app.php
http://localhost/xampp/index.php


no phpBB installation, is visible - not even this http://localhost/xampp/install/phpinfo.php
 

what goes wrong here!?
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.