Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-01 03:47:07

drudog
Member
Registered: 2011-02-01
Posts: 20

Strange and persistent language error

I keep receiving this error when doing anything in textpattern. It seems to have cropped up after I installed the ‘mem_self_register’ plugin but I’m not sure if it’s related.

Notice: Undefined variable: language in xxx/xxx/xxx/httpdocs/textpattern/index.php on line 70

This error happens on every textpattern UI page. The existing prefs seem to have been ignored as well but the DB still contains all the info. I’ve tried to go in and reset the preferences with no luck. Some of the UI fields don’t even show up so it makes it impossible. The articles all show up but the files and images will not list in TXP, however I can access the DB and find all the information there.

I’ve run the diagnostics and it tells me the images directory is unwritable but the permissions are 777. Everything else seems to check out fine.

Strangest thing, any help would be much appreciated.

I’ll paste in the diagnostics for anyone interested:

————————————-
Textpattern version: 4.2.0 (r3275)
Last Update: 2011-01-31 21:05:09/2010-04-14 02:35:20
Document root: xxx/httpdocs
$path_to_site: xxx/httpdocs
Textpattern path: xxx/httpdocs/textpattern
Permanent link mode: section_id_title
open_basedir: xxx/httpdocs:/tmp
Temporary directory path: xxx/httpdocs/textpattern/tmp
Site URL:
PHP version: 5.2.6
Register globals: 1
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server TZ: America/New_York
Server Local Time: 2011-01-31 22:43:34
DST enabled?: 0
Automatically adjust DST setting?: 0
Time Zone: America/New_York (-18000)
MySQL: 5.0.45
Locale: en_US.UTF-8
Server: Apache/2.2.3 (CentOS)
Apache version: Apache/2.2.3 (CentOS)
PHP Server API: apache2handler
RFC 2616 headers:
Server OS: Linux 2.6.9-023stab048.6-enterprise
Active plugins: chh_if_data-0.10, rss_google_map-0.5, srh_file_icon-0.1m, zem_contact_lang-4.0.3.6, zem_contact_reborn-4.0.3.20, smd_random_banner-0.42m, mem_templates-0.2, adi_variables-0.1m, ied_plugin_composer-0.4, mck_textilebar-1.4m, rss_admin_db_manager-4.3, stm_javascript-0.3, sed_section_fields-0.3.138m, rah_change_passwords-0.1, upm_file-0.4.1, upm_file_popper-0.2.2, ign_password_protect-0.5b9, mem_self_register-0.9.3, sed_plugin_library-0.5.2, smd_lib-0.36, mem_form-0.8.1, jmd_admin_js-0.1, bot_privs-0.3.2
Admin-side theme: remora 4.2.0

Pre-flight check:
————————————
Image directory is not writable: /xxx/xxx/xxx/xxx/httpdocs/
————————————

.htaccess file contents:
————————————
SetOutputFilter DEFLATE

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes AddHandler php5-script .php php_value register_globals on php_value upload_max_filesize 10M php_value post_max_size 10M php_value max_execution_time 1600 php_value max_input_time 2400
<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
————————————

Offline

#2 2011-02-01 12:36:11

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Strange and persistent language error

drudog wrote:

I keep receiving this error when doing anything in textpattern. It seems to have cropped up after I installed the ‘mem_self_register’ plugin but I’m not sure if it’s related.

Notice: Undefined variable: language in xxx/xxx/xxx/httpdocs/textpattern/index.php on line 70

Apparently prefs are not loading properly. I don’t know much about mem_self_register, but given that it alters the prefs table, it seems more than coincidence.

This error happens on every textpattern UI page. The existing prefs seem to have been ignored as well but the DB still contains all the info. I’ve tried to go in and reset the preferences with no luck. Some of the UI fields don’t even show up so it makes it impossible. The articles all show up but the files and images will not list in TXP, however I can access the DB and find all the information there.

Good that all the info is there. Have you tried running with mem_self_register disabled? (If you can’t access this through the admin panel, find it in txp_plugin and change its status value to 0.) Next thing I’d try is to disable all admin-side plugins. If neither works, I’d restore the database from the backup I made just before installing mem_self_register.

I’ve run the diagnostics and it tells me the images directory is unwritable but the permissions are 777.

That’s because path_to_site is empty, because prefs aren’t loading.


Code is topiary

Offline

#3 2011-02-01 14:39:42

drudog
Member
Registered: 2011-02-01
Posts: 20

Re: Strange and persistent language error

@jsoo:

Thanks for the idea, my man. I restored just the prefs table from backup and everything went back to normal. It seems mem_self_register made a monkey sandwich out of my prefs. I really need the ability to let people self register so I guess the next step is to hit up the mem_self_register forums to see if there is a workaround. I’ll also entertain any suggestions :D

thanks again

Offline

#4 2011-02-01 17:46:54

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 590
Website

Re: Strange and persistent language error

If you’re open to commercial software, there’s a TXP tip for integrating amember.

Offline

Board footer

Powered by FluxBB