Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Migration - Stuck on the admin languages pages
Hello, I’m trying to migrate a website from 4.5.7 to 4.6.x. For the time being I’m placing the new website in a subfolder, but after loggin in I can’t see but the languages page of the admin side.
DirectoryIndex index.php index.html
Options +FollowSymLinks
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /mysubfolder/
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>
How can I fix this?
Thanks!
Last edited by Manaus (2016-12-16 14:02:11)
Offline
#2 2016-12-16 14:27:07
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,305
Re: Migration - Stuck on the admin languages pages
Edit: Once you’ve done that go to the Diagnostics page to check whether FTP’ing was complete, especially things in the “Update” folder.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Migration - Stuck on the admin languages pages
Thanks Uli, seems like the issue is more complicated than expected… :~|
Offline
Re: Migration - Stuck on the admin languages pages
If you’re going straight to 4.6.2 from 4.5.7, the version issue is fixed so you won’t encounter it. But you might like to switch the site to Live mode, disable your plugins and then try the upgrade.
After that, once you’ve successfully logged in, switch your plugins back on one by one and see which (if any) cause problems and rattle the authors’ cages.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Migration - Stuck on the admin languages pages
I think I made it:
- disable all plugins
- logout
- update TXP
- update MLP
- login and diagnose
- enable each plugin and test
:)))))
Offline
Re: Migration - Stuck on the admin languages pages
Btw after updating and using plugin composer for updating the MLP package, I see a strange plugin in my list, which is called phps9YC5r.
Its code is like this:
if( !defined( 'ZCRL_PREFIX' ) )
define( 'ZCRL_PREFIX' , 'zem_crl' );
Is it safe? It’s zem
, so it should… :)
Offline
Re: Migration - Stuck on the admin languages pages
As far as I am aware there are no txp plugins named phps9YC5r.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Migration - Stuck on the admin languages pages
This is the code
#
# Define a (hopefully) unique prefix for our strings...
#
if( !defined( 'ZCRL_PREFIX' ) )
define( 'ZCRL_PREFIX' , 'zem_crl' );
#
# Here are the strings. Note that they all use the single quote format.
# The variable substitutions will be done as the strings are used.
#
global $zem_crl_strings;
$zem_crl_strings = array(
'checkbox' => 'Checkbox',
'contact' => 'Contact',
'email' => 'Email',
'email_subject' => '$var1 > Inquiry',
'email_thanks' => 'Thank you, your message has been sent.',
'field_missing' => 'Required field, “<strong>$var1</strong>”, is missing.',
'form_expired' => 'The form has expired, please try again.',
'form_used' => 'The form was already submitted, please fill out a new form.',
'general_inquiry' => 'General inquiry',
'invalid_email' => '“<strong>$var1</strong>” is not a valid email address.',
'invalid_host' => '“<strong>$var1</strong>” is not a valid email host.',
'invalid_utf8' => '“<strong>$var1</strong>” contains invalid UTF-8 characters.',
'invalid_value' => 'Invalid value for “<strong>$var1</strong>”, “<strong>$var2</strong>” is not one of the available options.',
'mail_sorry' => 'Sorry, unable to send email.',
'max_warning' => '“<strong>$var1</strong>” must not contain more than $var2 characters.',
'message' => 'Message',
'min_warning' => '“<strong>$var1</strong>” must contain at least $var2 characters.',
'name' => 'Name',
'option' => 'Option',
'radio' => 'Radio',
'receiver' => 'Receiver',
'recipient' => 'Recipient',
'refresh' => 'Follow this link if the page does not refresh automatically.',
'secret' => 'Secret',
'send' => 'Send',
'send_article' => 'Send article',
'spam' => 'We do not accept spam thankyou!',
'text' => 'Text',
'to' => 'No “<strong>to</strong>” email address specified.',
'to_missing' => '“<strong>To</strong>” email address is missing.',
'version' => '4.0.3.6'
);
#
# Register the callback for the enumerate string event.
# If the MLP pack is not present and active this will NOT get called.
#
register_callback( 'zem_crl_enumerate_strings' , 'l10n.enumerate_strings' );
#
# Here's a callback routine used to register the above strings with
# the MLP Pack (if installed).
#
function zem_crl_enumerate_strings($event , $step='' , $pre=0)
{
global $zem_crl_strings;
$r = array (
'owner' => 'zem_contact_lang-mlp', # Name the plugin these strings are for.
'prefix' => ZCRL_PREFIX, # Its unique string prefix
'lang' => 'en-gb', # The language of the initial strings.
'event' => 'public', # public/admin/common = which interface the strings will be loaded into
'strings' => $zem_crl_strings, # The strings themselves.
);
return $r;
}
#
# Here's the local gTxt routine.
#
# Need to make this fallback to the local array in case this is not being used with the MLP pack.
#
if( @txpinterface=='public' )
{
function zem_contact_gTxt( $what , $var1='' , $var2='' )
{
global $textarray;
global $zem_crl_strings;
#
# Build an array of substitutions...
#
$args = array();
if( !empty( $var1 ) )
$args['$var1'] = $var1;
if( !empty( $var2 ) )
$args['$var2'] = $var2;
#
# Prepare the prefixed key for use...
#
$key = ZCRL_PREFIX . '-' . $what;
$key = strtolower($key);
#
# Grab from the global textarray (possibly edited by MLP) if we can...
#
if(isset($textarray[$key]))
{
$str = $textarray[$key];
}
else
{
#
# Use the non-prefixed key...
#
$key = strtolower($what);
#
# Grab from the internal array if possible...
#
if( isset( $zem_crl_strings[$key] ) )
$str = $zem_crl_strings[$key];
else
#
# Fallback to returning the key if not present...
#
$str = $what;
}
$str = strtr( $str , $args );
return $str;
}
}
Offline
Re: Migration - Stuck on the admin languages pages
Manaus wrote #303345:
I see a strange plugin in my list, which is called phps9YC5r.
Doesn’t smell right. It’s either a temporary file from a failed plugin upload or a rogue piece of software. Either way, delete it.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline