WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.

Donate with PayPal buttonSpenden mit dem PayPal-Button

  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Modify pages backend
  • Print
Pages: [1]   Go Down

Author Topic: Modify pages backend  (Read 9050 times)

Offline RonR

  • Posts: 59
Modify pages backend
« on: December 13, 2020, 06:55:50 AM »
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.
Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1883
    • EFG MG
Re: Modify pages backend
« Reply #1 on: December 13, 2020, 07:18:07 AM »
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.
Logged
LG Harald

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

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline RonR

  • Posts: 59
Re: Modify pages backend
« Reply #2 on: December 13, 2020, 07:40:59 AM »
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.
Logged

Offline RonR

  • Posts: 59
Re: Modify pages backend
« Reply #3 on: December 13, 2020, 07:42:27 AM »
I can remember clearing cache because the layout was messed up.
Logged

Offline RonR

  • Posts: 59
Re: Modify pages backend
« Reply #4 on: December 13, 2020, 02:48:19 PM »
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.
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Modify pages backend
« Reply #5 on: December 13, 2020, 03:42:51 PM »
Ok, we will be going to fix it, Tks for testing

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

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Modify pages backend
« Reply #6 on: December 13, 2020, 04:07:44 PM »
What means "admin"? User or folder?
The folder is hartcoded in config.php
Code: [Select]
define('ADMIN_DIRECTORY', 'admin'); // no leading/trailing slash or backslash!! A simple directory name only!!
Logged
https://onkel-franky.de

Offline RonR

  • Posts: 59
Re: Modify pages backend
« Reply #7 on: December 13, 2020, 06:03:01 PM »
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.
Logged

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Modify pages backend
« Reply #8 on: December 13, 2020, 08:01:49 PM »
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.
« Last Edit: December 13, 2020, 08:07:47 PM by DarkViper »
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline RonR

  • Posts: 59
Re: Modify pages backend
« Reply #9 on: December 14, 2020, 01:09:01 PM »
downloaded and installed, working great so far!

Thanks for your help and keep up the good work!

Greetz,
Ron
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Modify pages backend
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2