evandixon Posted April 26, 2019 Posted April 26, 2019 One of my site's members alerted me to some broken links, all of which are old URLs from when we used to run vBulletin. Turns out the converter app got updated while the redirect pages didn't (i.e. showthread.php and friends). I'm seeing this in the system logs: Quote SELECT app_id, app_key FROM `convert_apps` WHERE name='forums_vbulletin' IPS\Db\Exception: Unknown column 'name' in 'where clause' (1054) #0 /some_path/public_html/home/system/Db/Select.php(373): IPS\_Db->preparedQuery('/*??*/ SELECT a...', Array, true) #1 /some_path/public_html/home/system/Db/Select.php(436): IPS\Db\_Select->runQuery() #2 /some_path/public_html/home/system/Db/Select.php(355): IPS\Db\_Select->rewind() #3 /some_path/public_html/home/showthread.php(80): IPS\Db\_Select->first() #4 {main} I found this thread saying that apparently these redirect files haven't been needed for quite a while, but it's still broken for me: When I use the redirect file, I get the error "Something went wrong. Please try again.". When I remove it, I get "File not found." thrown from php-fpm because the file doesn't exist. Does anyone know how redirects are supposed to work in the current version and/or how to get them working again?
AlexWebsites Posted April 26, 2019 Posted April 26, 2019 You don't need the redirect files anymore. The redirects are built in now. @Stuart Silvester may be able to assist.
bfarber Posted April 26, 2019 Posted April 26, 2019 If you have the old showthread.php and similar redirect files remove them. The URLs will get routed through index.php (like every other URL) and the Converter application itself will handle the redirects moving forward without requiring extra/special files.
evandixon Posted April 26, 2019 Author Posted April 26, 2019 40 minutes ago, bfarber said: The URLs will get routed through index.php That's what I needed. Nginx wasn't routing calls to .php urls to index.php. If anyone else has this issue, my nginx config looks something like this now. location /home/ { index index.php index.html; try_files $uri $uri/ /home/index.php; location ~ \.php$ { try_files $uri /home/index.php; # THIS is the part I was missing include our_fastcgi_params.conf; # Stores fastcg_pass and friends } # (Other stuff for uploads and ACP) } This post also has some useful stuff if the above doesn't fix any future reader's issue:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.