Posted on: 05/24/21 10:49am
By: spergol
I was trying to edit stuff for a theme, then did an envcheck and got an error. So I thought I'd broken something.
Since nothing important was on my installation yet, I simply deleted the whole thing and re-installed.
The only thing I changed was my Admin password and my default theme (not uploading anything new), and I get that same error in the envcheck that I started in the C&C.
Not being fluent in PHP, what I noticed was the double-slash in the URL in the second line from the bottom - that's why I copy-pasted the start of the details.
Everything seems to be working using the backup-system, but I decided to post this here anyway.
--------------
envcheck.php
A PHP error has occurred:
(This text is only displayed to users in the group 'Root'
E_WARNING(2) - phpinfo() has been disabled for security reasons @ /var/www/virtual//my_site/htdocs/admin/envcheck.php line 817
Call Stack
# Function File Line
1 phpinfo /var/www/virtual/my_site/htdocs/admin/envcheck.php 817
2 _phpinfo /var/www/virtual/my_site/htdocs/admin/envcheck.php 634
3 _checkEnvironment /var/www/virtual/my_site/htdocs/admin/envcheck.php 842
array(1) {
["T"]=>
object(Template)#13 (17) {
["classname"]=>
string(8) "Template"
["debug"]=>
int(0)
["root":"Template":private]=>
array(1) {
[0]=>
string(58) "/var/www/virtual/my_site/htdocs/layout/denim/admin"
}
["file":"Template":private]=>
array(2) {
["page"]=>
string(81) "/var/www/virtual/my_site/data/layout_cache/english//denim__admin__envcheck.php"
["status"]=>
string(80) "/var/www/virtual/my_site/data/layout_cache/english/denim__admin__envcheck.php"
}
[lots more]
Re: envcheck.php error on fresh installation
Posted on: 05/24/21 02:49pm
By: Laugh
Did you test it using a theme that comes with Geeklog like denim?
Looking at the error it looks like your web host is blocking the use of the phpinfo function and the Environment Host Check page does not take that into account so it then errors out.
I have added an issue for this on Github here:
https://github.com/Geeklog-Core/geeklog/issues/1089[*1]
We will take a look at the issue and make sure it is fixed for the next version of Geeklog.
Thanks for reporting this error.
Tom
PS You could try contacting your host to see if they will update your security settings to allow your website to use the phpinfo function.
Re: envcheck.php error on fresh installation
Posted on: 05/24/21 04:45pm
By: spergol
All I did after the new installation was to change my Admin password, deal with the install folder and then change the Admin's theme to denim.
I didn't upload any modified files at all, theme or otherwise.
It's not the webspace I'm going to use later for the real purpose, so if the host is the problem that may solve itself.
This is just a learning version for tinkering around and hopefully creating a more fitting theme.
Re: envcheck.php error on fresh installation
Posted on: 05/24/21 04:50pm
By: spergol
I just had an idea and tried it out - when I change the Admin's theme, the error changes from denim to the new theme - so the problem is not in the denim theme.
Re: envcheck.php error on fresh installation
Posted on: 06/05/21 11:48am
By: spergol
Update: No such problem on the real server - must have been the host.
However, I've run into a few other problems. One of them I'll make a new post about - sorry about that!