Jump to content

Converter redirects broken


evandixon

Recommended Posts

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?

Link to comment
Share on other sites

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:

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...