Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-10-31 22:53:24

Farren
New Member
Registered: 2017-10-31
Posts: 5

Migrating to new host

I’m new to Textpattern, but I’ve been assigned the task of moving an existing site to a new host. I’ve got Textpattern installed and the database moved. I can log into the admin panel and see all the content, users, etc. But, when I try to view the live site, I get the following:

Warning: include(/srv/www/htdocs/a/textpattern/lib/class.trace.php): failed to open stream: No such file or directory in /srv/www/htdocs/a/index.php on line 85

Warning: include(): Failed opening ‘/srv/www/htdocs/a/textpattern/lib/class.trace.php’ for inclusion (include_path=’.:/usr/share/php5:/usr/share/php5/PEAR’) in /srv/www/htdocs/a/index.php on line 85

Fatal error: Class ‘Trace’ not found in /srv/www/htdocs/a/index.php on line 86

And, I’m at a loss as to what I need to do next. Any advice? Thanks!!

-Farren

Offline

#2 2017-11-01 03:07:50

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Migrating to new host

You might want to start by ensuring that you uploaded the Textpattern install correctly? There is a class.trace.php file in the /textpattern/lib/ folder..

Offline

#3 2017-11-02 14:55:33

Farren
New Member
Registered: 2017-10-31
Posts: 5

Re: Migrating to new host

That file is missing.

When I’m in the admin console, the Pre-Flight Check, shows $path_to_site is inaccessible, and I see that the path given is that of the old server.

Where is that variable set?

-Farren

Last edited by Farren (2017-11-02 18:20:06)

Offline

#4 2017-11-02 19:32:20

Farren
New Member
Registered: 2017-10-31
Posts: 5

Re: Migrating to new host

I’m slowly whittling away at the errors in the Pre-Flight check. Below is what I’m left with. At this point, the home page of the site will load, but no other pages.

Pre-flight check
DNS lookup failed: al****.com ? (I have my local hosts file pointing to the local VM I’m working with)
Some Textpattern files have been modified:
/srv/www/htdocs/a/index.php,
/srv/www/htdocs/a/textpattern/include/txp_auth.php,
/srv/www/htdocs/a/textpattern/include/txp_diag.php,
/srv/www/htdocs/a/textpattern/include/txp_image.php,
/srv/www/htdocs/a/textpattern/lib/txplib_db.php,
/srv/www/htdocs/a/rpc/index.php,
/srv/www/htdocs/a/rpc/TXP_RPCServer.php ?
Site URL preference might be incorrect: 192.168.0.181/a ?
Clean URL test failed. ?

Offline

#5 2017-11-02 20:44:40

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: Migrating to new host

Farren wrote #307629:

Clean URL test failed. ?

Did your FTP app leave out the .htaccess file? Or maybe you drag-transferred with a Mac (files beginning with a dot are hidden on Macs).

Some Textpattern files have been modified:

Added Missed that one: Transfer these files once again. Try a different FTP app if it fails again.

Last edited by uli (2017-11-02 20:47:31)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2017-11-03 20:43:37

Farren
New Member
Registered: 2017-10-31
Posts: 5

Re: Migrating to new host

Well, I upgraded to the latest textpattern and I’m down to just a single warning:

Pre-flight check
Clean URL test failed.

Here’s the .htaccess file as shown in the diagnostic window:

.htaccess file contents: 
------------------------
# BEGIN Textpattern
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteBase /relative/web/path/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]

    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^(.*) index.php

    RewriteCond %{HTTP:Authorization}  !^$
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

<IfModule mod_mime.c>
    AddType image/svg+xml  svg svgz
    AddEncoding gzip       svgz
</IfModule>
# END Textpattern

------------------------

And, the actual site behavior is the same: the home page loads fine, but every other page linked from the home page gives a 404 error.

-Farren

Offline

#7 2017-11-03 21:09:52

Farren
New Member
Registered: 2017-10-31
Posts: 5

Re: Migrating to new host

But, if I set Article URL Pattern to ?=messy, the entire (almost) site works fine. There’s one “special” page that is a hand-coded PHP page that I have to redo, but that’s not Textpattern’s fault…

phpinfo() does show that mod_rewrite is loaded. Are there other modules that need to be loaded to support clean URL’s?

-Farren

Offline

#8 2017-11-04 10:59:38

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: Migrating to new host

Hi faren,

there are a lot of variations. Did you try this suggestion?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB