Vanilla error Settings->Layout returns 404. Can't find anything in logs
I checked PHP, Mysql, and Apache logs, but all I can find is
The actual error is:
Request failed with status code 404
From access http log (apache2)
111.111.111.111 - - [04/Jan/2022:21:00:36 +0000] "POST /index.php?p=/dashboard/userpreferencesectionlandingpage HTTP/1.1" 200 822 "http://AWEBSITE.COM/index.php?p=/dashboard/settings/layout
" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
111.111.111.111 - - [04/Jan/2022:21:00:36 +0000] "GET /index.php?p=/dashboard/settings/layout HTTP/1.1" 200 21032 "http://AWEBSITE.COM/index.php?p=/dashboard/settings/layout" "Mozilla/5.0 (
Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
111.111.111.111 - - [04/Jan/2022:21:00:36 +0000] "GET /api/v2/locales/en/translations.js?h=2021.024 HTTP/1.1" 404 488 "http://AWEBSITE.COM/index.php?p=/dashboard/settings/layout" "Mozilla/5
.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
111.111.111.111 - - [04/Jan/2022:21:00:37 +0000] "GET /api/v2/themes/keystone?revisionID= HTTP/1.1" 404 488 "http://AWEBSITE.COM/index.php?p=/dashboard/settings/layout" "Mozilla/5.0 (Window
s NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
111.111.111.111 - - [04/Jan/2022:21:00:37 +0000] "GET /api/v2/config?select=discussions.layout%2Ccategories.layout%2Croutes.defaultController HTTP/1.1" 404 488 "http://AWEBSITE.COM/index.ph
p?p=/dashboard/settings/layout" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
111.111.111.111 - - [04/Jan/2022:21:00:37 +0000] "POST /index.php?p=/settings/analyticstick.json HTTP/1.1" 200 751 "http://AWEBSITE.COM/index.php?p=/dashboard/settings/layout" "Mozilla/5.0
(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
111.111.111.111 - - [04/Jan/2022:21:00:37 +0000] "GET /index.php?p=/utility/getfeed/releases/5/extended HTTP/1.1" 200 3137 "http://AWEBSITE.COM/index.php?p=/dashboard/settings/layout" "Mozi
lla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
111.111.111.111 - - [04/Jan/2022:21:00:37 +0000] "GET /index.php?p=/utility/getfeed/news/5/extended HTTP/1.1" 200 2152 "http://AWEBSITE.COM/index.php?p=/dashboard/settings/layout" "Mozilla/
5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"
No errors in fpm or mysql log , or php or anything else I can find.
Using php7.4, Vanilla 2021011, mysql-8, php-fpm 7.4
Comments
try 2021021
I had same problem https://open.vanillaforums.com/discussion/38968/layout-button-gives-error#latest
It works in 2012.009 but not in 2012.012. I tried to install 2021.021 but was unsuccessful. I asked my web developer to install and he said he installed successfully but we still had error 400.
I did try 2021.021 from github. It compiled and installed. It looked successful, I did not see any errors. But the website would not load. It was just blank and would redirect from "/" to the settings page to set up the site, but it was blank. It did not connect to mysql because I turned on all statement logging and there were no errors in any of the php, mysql, or apache logs. I have turned on all sorts of logging but this has become very hard to diagnose because I can't find any errors.
I've been a FreeBSD, Linux, SunOS/Solaris administrator and and mild programmer since the 1990s and I cannot get vanilla 2021 any version to work with Ubuntu 18.x to current.
If Vanilla does pull up in a web browser, some extensions won't slide over to install (or sometimes none of them at all) and each and everyt time layout gives me that "404".
The only way I can get the server to load is to run "bin/release.sh" with either 2021.012 or 2021.021 which only works after I run "composer install" after bin/release.sh, but I still get the 404 Layout error and other quirks.
I'll try to post the entire install log. If there's more verbose logging to turn on, I'll turn it on if someone can tell me how.
I wanted to use Vanilla, and I've now switched to MyBB because it just worked. phpBB also works, but I did not want to use that. I signed up for Vanilla Sales to call me, I'm not interested in purchasing a cloud version, but I'm certainly wanting to tell them of my frustrations.
I honestly do not know how anyone got this to work without using an outdated version of Linux. I must stay at Ubuntu 20.X, though i could have made 18.X work but Vanilla failed there too. :(
You should better stick to 2021.009 for now.
The error above has shown the you are not using pretty urls. Add
$Configuration['Garden']['RewriteUrls'] = true;
to your /conf/config.php fileI added that to config.php and it returned it a blank page with no error.
The syntax was correct and I pasted it with the other garden settings.
I even added it to the -dist config and tried a fresh install. Same thing so I removed it.
Im pretty happy with MyBB. It worked with minor tweaking on Ubuntu 20.X
Thanks for the suggestions but Vanilla appears outdated and archaic to today’s distribution. I can’t spend hours upon hours backporting or figuring out why I’m getting blank pages or 404 or 500 errors. I couldn’t find any errors in any of the logs
@jakej How does admin panel and reputation system compare. I tested about 7 different forums beforehand. I was considering using phpbb. It had a better set of rules for karma/reputation system but dashboard, look and feel, and look/ features of yaga all won on vanilla. I don't recall if I went through mybb thoroughly.
Yaga plugin has rankings based on reactions, badges and ranks all that I can modify from clean user interface, can uplaod images and change basic titles etc. That was key for me. Couldn't find that on any other forum.
Yaga is a feature I'm looking for. I see that there are different flavors for Vanilla, phpBB and MyBB. Today I'm working on plugins and extensions with MyBB (they are not as simple as Vanilla or phpBB) so I'm going to look at some tutorials and videos. What I tried didn't seem to work (ie, I think there is an old way, new way, and a plugin to help aid with plugin installations, lol).
Had hoped Vanilla would call or email me, but after a week, still nothing. Maybe slow because of the holidays, but oh well.
I'm not on a live board yet, hopefully in a few days or week it'll be ready for primetime.
For ease, I'd probably use phpBB, but the last time I used it, i was subjected to an SQL injection attack and it was so bad I was not able to recover my users or posts, and stupid me didn't have one backup... 😓