Modify pages backend

RonR

downloaded and installed, working great so far!

Thanks for your help and keep up the good work!

Greetz,
Ron

Luisehahne

#9
Download it for testing.
Regarding the rename 'admin' folder: Please note, however, that this functionality is already set to the 'deprecated' status. With the next minor version this directory will disappear completely in the course of the 'refactoring'.

Download WebsiteBaker 2.13.0 RC1 r13 , a complete, installable release candidate including all previously reported and fixed problems.
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

RonR

I mean admin folder.
I get a error 500 if I change foldername and config define.

It looks for config.php in
Mynewadminfolder//config.php.

(See the double slashes)

Instead of root folder.

dbs

What means "admin"? User or folder?
The folder is hartcoded in config.php
define('ADMIN_DIRECTORY', 'admin'); // no leading/trailing slash or backslash!! A simple directory name only!!
[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

Luisehahne

Ok, we will be going to fix it, Tks for testing

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

RonR

took a step back and renamed my admin to "admin" again.
Then it works OK and get no error 500.

Looks like something is looking for a hardcoded admin and generates a 500 when the admin is renamed.

Prefer for safety reasons to rename the admin directory.

RonR

I can remember clearing cache because the layout was messed up.

RonR

Yes, the unzip had a link to the backend, and there I did run the upgrade-script.
I have a autogenerated config-file for 2.13, which is exactly the same as the 2.12 one exept for the comments

*** auto generated config file for 2.13.0
*** WebsiteBaker upgrade from 2.12.2 to 2.13.0

old one:
*** auto generated config file for 2.12.2
*** WebsiteBaker upgrade from 2.12.1 to 2.12.2

I cannot recall pressing f5 or being promted to do so.

hgs

After the unzip.php did you have a link to the upgrade-script in the backend?
So you could log into the backend?
Was the config.php rewritten when running.
For this you had to press F5 once.
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

RonR

Just updated 2.12 to 2.13
Used unzip.php
PHP7.3
during update no errors reported.

Cannot access modify pages in backend, getting a HTTP ERROR 500.

Hosting error log:
Backend log: PHP Warning:  require(/home/mydomain/domains/mydomain.nl/public_html/admin//config.php):
failed to open stream: No such file or directory in /home/mydomain/domains/mydomain.nl/public_html/admin/pages/modify.php on line 52\n, referer: https://mydomain.nl/admin/pages/index.php
[Sun Dec 13 06:13:26.507679 2020] [lsapi:error] [pid 4190830:tid 139812719716096] [client 145.133.95.20:60565]
[host www.mydomain.nl] Backend fatal error: PHP Fatal error:  require(): Failed opening required '/home/mydomain/domains/mydomain.nl/public_html/admin//config.php'
(include_path='.:/opt/alt/php73/usr/share/pear') in /home/mydomain/domains/mydomain.nl/public_html/admin/pages/modify.php on line 52\n, referer: https://www.mydomain.nl/admin/pages/index.php


Looks like it is looking for config.php in the wrong place.(/admin//config.php)
How to fix?

Greetz.