Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2013-07-29 13:32:34

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

Re: Transferring a site and getting errors

OK, maybe we’ve not been clear enough:

The preference is named path_to_site, not $path_to_site. In your case it needs editing via php_myadmin, table txp_prefs (not via the Textpattern admin).


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

Offline

#26 2013-07-31 14:28:40

tayfighter
Member
Registered: 2013-07-15
Posts: 23

Re: Transferring a site and getting errors

Hi

Thanks found it.

However when i change it it keeps resetting itself to the old settings.

/home/sites/kro.co.uk

Any ideas?

Do you think this is what is causing the sub pages to not be working.

Last edited by tayfighter (2013-07-31 14:30:42)

Offline

#27 2013-07-31 22:03:20

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

Re: Transferring a site and getting errors

tayfighter wrote:

However when i change it it keeps resetting itself to the old settings.

So it seems the prefs setting is constantly taken from some other place. Didn’t know that. Will be the txpath entry in config.php.


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

Offline

#28 2013-08-01 09:18:42

tayfighter
Member
Registered: 2013-07-15
Posts: 23

Re: Transferring a site and getting errors

Hi

Thanks but i’d changed the config file too

This is what i changed it to >

$txpcfg[‘txpath’] = ’176.32.230.27/kro.co.uk/public_html/textpattern’;

Have copied and followed all the instructions for transferring and have edited all the relevant bits.

Offline

#29 2013-08-01 10:20:29

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: Transferring a site and getting errors

Hi

First check again your diagnostic page on textpattern admin to see if all is ok! i suspect that there is an htaccess problem there, try to switch to messy url on textpattern admin preference tab to see if links will work!

I confirm that is an htaccess problem there this link (a messy url schme to your section) works: http://176.32.230.27/kro.co.uk/index.php?s=kro-social-news-events-promotions

Last edited by Dragondz (2013-08-01 10:22:18)

Offline

#30 2013-08-01 11:16:06

tayfighter
Member
Registered: 2013-07-15
Posts: 23

Re: Transferring a site and getting errors

Thanks Dragondz

Tried changing it to messy, but still getting errors.

Havent changed the .htaccess file >>

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<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

And from the textpattern diagnostics, im getting the following

Web Domain DNS lookup fails: 176.32.230.27
File directory path is not writable: 176.32.230.27/kro.co.uk/public_html/files
Temporary directory path is not writable: 176.32.230.27/kro.co.uk/public_html/textpattern/tmp
Some Textpattern files have been modified:
/home/sites/kro.co.uk/public_html/index.php,
/home/sites/kro.co.uk/public_html/textpattern/include/txp_auth.php,
/home/sites/kro.co.uk/public_html/textpattern/index.php,
/home/sites/kro.co.uk/public_html/textpattern/lib/class.thumb.php,
/home/sites/kro.co.uk/public_html/textpattern/lib/txplib_db.php,
/home/sites/kro.co.uk/public_html/rpc/index.php ?
Clean URL test failed.

I assume the Web Domain DNS lookup fails because the domain isnt set up yet, but the other settings are still referring to the old settings.

Any ideas.

thanks for the help.

Offline

#31 2013-08-01 12:00:04

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: Transferring a site and getting errors

Hi

Thre shouldn be modified files!
first try to upload all textpattern directory files from textpattern repo (the zip downloaded from textpattern.com) that will solve the modified file problem.

for the url i checked your location 176.32.230.27/kro.co.uk/ and still the links are not messy url, maybe the links are hard coded then look at your page tab and form tab to see how things has been coded!

Offline

#32 2013-08-01 17:46:48

tayfighter
Member
Registered: 2013-07-15
Posts: 23

Re: Transferring a site and getting errors

Hi

I havent modified anything apart from the config.php file

I’ve changed it to messy url but looking in the forms the pages are like this

<a href=”<txp:site_url />kro-social-news-events-promotions” title=“KRO Bar Social”>News & Offers</a>

however I have specified the site)url to be 176.32.230.27/kro.co.uk

So still not sure what i’m missing?

Offline

#33 2013-08-04 08:37:32

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: Transferring a site and getting errors

hi

I didnt say that you mofided something but the files are marked as modified then try uplaoding the textpattern folder from the textpattern.com to solve that.

Four your code it is hardcoded to change that use a code like this:

<txp:section name="kro-social-news-events-promotions">News & Offers</txp:section>

The title information will not be there but the link will works with any url scheme.

try it.

Offline

#34 2013-08-11 13:50:52

tayfighter
Member
Registered: 2013-07-15
Posts: 23

Re: Transferring a site and getting errors

Have updated and upgraded my version of textpattern.

Sorry, i’m not sure where i change that.

Is it under Pages > Article Output ?

At the moment this is what I have here

<txp:output_form form=“html_head” />
<body>

<div id=“wrapper”>
<div id=“all”>
<div id=“no-css-nav” style=“display:none;”>
<h1>Welcome to …</h1>
<h2>Accessibility Links</h2>
<ul>
<li><a href=”<txp:site_url />access” title=“View Accessibility Page”>Accessibility Page</a></li>
<li><a href=”#navigation”>Skip to Navigation</a></li>
<li><a href=”#content”>Skip to Content</a></li>
</ul>
</div>

<txp:output_form form=“layout_header” />

<txp:if_section name=”,home”>
<div id=“home”>

</txp:if_section>
<txp:if_section name=“about-kro”>
<div id=“contentAbout” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“kro-piccadilly,kro-piccadilly-promotions”>
<div id=“contentPiccadilly” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“kro-bar,kro-bar-promotions”>
<div id=“contentBar” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“kro-heaton-moor,kro-heaton-moor-promotions”>
<div id=“contentHeaton” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“kro-trafford-centre,kro-trafford-centre-promotions”>
<div id=“contentTrafford” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“kro-social-news-events-promotions,promotions,news-events,special-offers”>
<div id=“contentSocial” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“bar-locations”>
<div id=“contentLocations” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“sitemap”>
<div id=“contentSitemap” class=“contentContainer”>
</txp:if_section>
<txp:if_section name=“terms-and-conditions,privacy-policy,disclaimer”>
<div id=“contentSitedocs” class=“contentContainer”>
</txp:if_section>
<a name=“content”></a>
<txp:output_form form=“layout_content” />
<div class=“clear” ></div>
</div>

<div class=“clear”></div>
<txp:output_form form=“layout_footer” />
</div>
</div><!—all—>
<txp:output_form form=“layout_subfooter” />
<div class=“clear” ></div>

<txp:output_form form=“analytics_code” />

</body>

</html>

The about page seems to now work using a messy url but the other pages still don’t seem to work.

Thanks for the help so far.

Offline

#35 2013-08-11 14:10:22

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,538
Website GitHub Twitter

Re: Transferring a site and getting errors

Hi

viewing your page look like the informations to change are on form tab (on textpattern admin), i think it should be on layout_header or layout_content form.

Offline

#36 2013-08-14 11:01:24

tayfighter
Member
Registered: 2013-07-15
Posts: 23

Re: Transferring a site and getting errors

Hi

Still unsure what i change.

I’ve copied the site over exactly, so not sure why its not working when the existing site is.

Is it possible the site will work once its off a test server / domain?

Thanks

Ty

Offline

Board footer

Powered by FluxBB