Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: HELP! Side-bar disappeared
I assume you don’t literally mean http://oursite/textpattern/index.php, but that I should substitute the public domain name.
From the error message when attempting to log in, it is clear that the public-side index.php is loading, not the (correct) admin-side index.php. I’m sorry to say that I don’t know why this is happening. I suspect it has to do with this mysterious centertemplate directory and that the admin-side has its own DNS record. I don’t see how you could have changed this from within the Textpattern admin panel. Were you doing anything directly with files on the server before this happened?
What files/directories are inside public_html?
Code is topiary
Offline
#32 2011-01-26 04:17:02
- n2
- Member

- Registered: 2011-01-25
- Posts: 56
Re: HELP! Side-bar disappeared
.
Last edited by n2 (2011-01-26 15:01:44)
If code is poetry, I’m a lousy poet.
Offline
Re: HELP! Side-bar disappeared
n2, I’m sorry, I’m going to have to sleep on it. I note that the error messages are sometimes there, and other times there is a 404. Something is up here on the server level; I do not think this is a Textpattern issue per se. If it is possible for you to contact support for the web hosting account, do so.
Again, the error messages (when they appear) clearly indicate that the request to xxx/textpattern is returning to the public-side index.php. This suggests a DNS issue.
Conceivably it has to do with jpcache, but I doubt it.
Again, sorry I have to cut out for now, and good luck.
Code is topiary
Offline
#34 2011-01-26 04:40:24
- n2
- Member

- Registered: 2011-01-25
- Posts: 56
Re: HELP! Side-bar disappeared
.
Last edited by n2 (2011-01-26 15:19:12)
If code is poetry, I’m a lousy poet.
Offline
Re: HELP! Side-bar disappeared
Looks like you worked it out, or the problem fixed itself? I assume you can log in now? If so, now we can get back to your sidebar question :)
Code is topiary
Offline
#36 2011-01-26 14:58:55
- n2
- Member

- Registered: 2011-01-25
- Posts: 56
Re: HELP! Side-bar disappeared
Yes, I was up all night and finally fixed it by cleaning up code in the Index.php files.
Thanks a million for your continued help.
Here’s the high diagnostics report:
.
Edited for formatting
Textpattern version: txp_version (r2800)
Last Update: 2011-01-26 08:48:02/2008-10-03 14:19:13
Document root: /home/serling/public_html
$path_to_site: /home/serling/public_html
Textpattern path: /home/serling/public_html/textpattern
Permanent link mode: title_only
Temporary directory path: /tmp
Site URL: www.meditationinmass.org
PHP version: 5.2.14
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2011-01-26 09:55:41
MySQL: 5.0.91-community
Locale: en_GB.UTF-8
Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
PHP Server API: cgi
RFC 2616 headers: 0
Server OS: Linux 2.6.18-164.11.1.el5
Active plugins: zem_paginate-0.1m, chh_if_data-0.10, rah_sitemap-0.1.2, rvm_css-0.3, rvm_privileged-0.3, glx_hl_current-0.3, zem_event-0.3.5m, asy_wondertag-0.5, asy_jpcache-0.9.8m, hak_tinymce-0.7.4, stm_article_order-0.2, adi_menu-0.6, kml_flashembed-1.4.3, aro_slideshow-0.4.1
Pre-flight check:
------------------------
Some Textpattern files are out of date:
/index.php
Some Textpattern files have been modified:
/../index.php
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, disk_free_space, diskfreespace, highlight_file, ini_alter, ini_restore, openlog, proc_nice, show_source, symlink
------------------------
.htaccess file contents:
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^sitemap.xml?$ ?rah_sitemap=sitemap
#RewriteBase /relative/web/path/
#Remove www.
#RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
#RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]
#Add www.
#RewriteCond %{HTTP_HOST} ^example.com$
#RewriteRule (.*) http://www.example.com$1 [R=301]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
### If Password protected directories no longer work after installing Textpattern uncomment the following two lines ###
#ErrorDocument 401 /error.html
#ErrorDocument 403 /error.html
### Redirections ###
## Redirect 301 /old/path/tofile/ http://mysite.org/newpath
RewriteCond %{HTTP_HOST} ^meditationinboston.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.meditationinboston.org$
RewriteRule ^/?$ "http\:\/\/www\.meditationinmass\.org" [R=301,L]
------------------------
Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
18 Tables: OK
PHP extensions: date/5.2.14, libxml, openssl, pcre, zlib/1.1, bcmath, calendar, ctype, curl, dom/20031129, filter/0.11.0, ftp, gd, gettext, hash/1.0, iconv, session, json/1.2.1, mbstring, mcrypt, mhash, mysql/1.0, SimpleXML/0.1, posix, Reflection/0.1, standard/5.2.14, SPL/0.2, mysqli/0.1, soap, sockets, imap, tokenizer/0.1, xml, xmlreader/0.1, xmlrpc/0.51, xmlwriter/0.1, cgi, suhosin/0.9.32.1, PDO/1.0.4dev, pdo_sqlite/1.0.1, SQLite/2.0-dev, pdo_mysql/1.0.2, ionCube Loader, Zend Optimizer
pretext_data: array (
'id' => '',
's' => '',
'c' => '',
'q' => '',
'pg' => '',
'p' => '',
'month' => '',
'author' => '',
'request_uri' => '/4c93d0a39ed47791ea3a48e1efb4a7ed/?txpcleantest=1',
'qs' => 'txpcleantest=1',
'subpath' => '\\/',
'req' => '/4c93d0a39ed47791ea3a48e1efb4a7ed/?txpcleantest=1',
)
/../index.php: r2774 (95724661eb6ee1ce08ae5e61ff1495bd)
/css.php: r2772 (4807cbc15661213f2b4d0fd26c7179ff)
/include/txp_admin.php: r2729 (0c2b3cf59ff433c943bcc293a526651a)
/include/txp_article.php: r2680 (49a7155d831f843bcf3e8de306dfe7f1)
/include/txp_auth.php: r2728 (c472bfbe49a71fd35e89000c8a18de08)
/include/txp_category.php: r2243 (0ed99b6f44b5d221bdf35674240141ab)
/include/txp_css.php: r2730 (7974aa87728b39d3afaba5a3b18cf6b5)
/include/txp_diag.php: r2791 (aeb96445180b68c31821e237b6150332)
/include/txp_discuss.php: r2774 (852a8a4d4307358e161e0501124b7247)
/include/txp_file.php: r2530 (9f34fdbf98b9b649d65e2ced4c9ca763)
/include/txp_form.php: r1913 (780340d28f384113c72924843194b43e)
/include/txp_image.php: r2668 (11269b464db6cfa3affff47674533a50)
/include/txp_import.php: r1238 (86f0e64d2c9362066e6c48b9cd486e37)
/include/txp_link.php: r2463 (2379d25f83b37ec6c8d5f3edb1122ce8)
/include/txp_list.php: r2725 (1ed6c6f729eaeb7f8a582b27cd5b9e78)
/include/txp_log.php: r2796 (f249e0962a996f05041b899fea91ccae)
/include/txp_page.php: r2717 (807ff04b4a649b54b3d710c1ab0a428f)
/include/txp_plugin.php: r2774 (e9fdc47a3ed9bdd13197d929161c6a13)
/include/txp_prefs.php: r2528 (50bd3be8c22e17d5ca2855ccea081bac)
/include/txp_preview.php: r1238 (c45992b3273ac8019477e2f959d63120)
/include/txp_section.php: r2759 (9208297e0bd7b3d41bd0e6f9fc9ab120)
/include/txp_tag.php: r2774 (f371b400e8d7318e2ac48e032fe6c274)
/index.php: r2774 (3290b0bc45d6da7fffd3464bbeecfbf2)
/lib/IXRClass.php: r765 (0120eb4713c9b6446a0eebe8b1039d1c)
/lib/admin_config.php: r1747 (b972529744cb37a7695fe00316dada41)
/lib/class.thumb.php: r2329 (c7f66a32531f32d6dfcbe5c7d26c7852)
/lib/classTextile.php: r2779 (b6d5b9cecbc5bc6475b5d1ee6a5231ea)
/lib/constants.php: r2361 (5338211ece1b2592804acdd204c9df33)
/lib/taglib.php: r2612 (727737ebd08127c632b9822bae87fee0)
/lib/txplib_admin.php: r2726 (c4f65bac2ddef62867f5bfee97ad7dfe)
/lib/txplib_db.php: r2748 (3feb369b1c34f251815cd6085a216d62)
/lib/txplib_forms.php: r2759 (a2d3de62110e582fab2a3a20224661f4)
/lib/txplib_head.php: r2783 (74ced647523a94da307af9853d7ed596)
/lib/txplib_html.php: r2696 (57985ebd2501bc303d2e97ae7538db1f)
/lib/txplib_misc.php: r2788 (7ecfaa5d4fabefbf411d01615dea9485)
/lib/txplib_update.php: r1239 (e3bd2d0c2b491d4028a656b8301a0086)
/lib/txplib_wrapper.php: r2800 (4ad38ee67f3ee8d9e7b51544a4f0f58b)
/publish.php: r2777 (0ce3da212329e7d34de07e53e109d182)
/publish/atom.php: r2774 (50aa384a2edf7cc07effee9020e0893b)
/publish/comment.php: r2776 (0e1ea64316087edcd75f394494b42100)
/publish/log.php: r1637 (f69237dc2ff39bd7a691c8ca1bc87808)
/publish/rss.php: r2793 (022caa22c756c64f2255aae6625686d8)
/publish/search.php: r1748 (ea84e04b2c688b0bb8b5a9ecf395749a)
/publish/taghandlers.php: r2774 (59dc36e6dabc619e23c43f722fe7b8f1)
/update/_to_1.0.0.php: r711 (0f49fca8fbd8e6fca0fc48b0f69f0461)
/update/_to_4.0.2.php: r711 (e77c0e0d972868f19eaee4565bd0b4c4)
/update/_to_4.0.3.php: r711 (f5506cfd0fbc3ad4bd9a9b2299468775)
/update/_to_4.0.4.php: r711 (4d867b42ee87a7f11d2bff3a8e91bed0)
/update/_to_4.0.5.php: r2464 (dbe80cd4a775d3a43a203c3c4a2d0e3f)
/update/_to_4.0.6.php: r2464 (7e5ae73eb64c24438918697089a1f321)
/update/_update.php: r2792 (6ff7b4dedb2c7735a01e76b13b3f1fb1)
Last edited by jsoo (2011-01-26 15:55:16)
If code is poetry, I’m a lousy poet.
Offline
#37 2011-01-26 15:53:38
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: HELP! Side-bar disappeared
n2: I’m glad you managed to solve the problem, but it is not helpful to remove your posts from this thread. Even though you solved your problem, others might still benefit from it. Please don’t do that again?
Offline
Re: HELP! Side-bar disappeared
n2 wrote:
Yes, I was up all night and finally fixed it by cleaning up code in the Index.php files.
Glad you got it fixed; sorry it took an all-nighter. What did you change?
Active plugins: zem_paginate-0.1m, chh_if_data-0.10, rah_sitemap-0.1.2, rvm_css-0.3, rvm_privileged-0.3, glx_hl_current-0.3, zem_event-0.3.5m, asy_wondertag-0.5, asy_jpcache-0.9.8m, hak_tinymce-0.7.4, stm_article_order-0.2, adi_menu-0.6, kml_flashembed-1.4.3, aro_slideshow-0.4.1
My only comment here is that asy_wondertag is not needed when using Txp 4.0.7 or later, and that upgrading to at least 4.0.7 is recommended anyway, for security reasons.
Some Textpattern files are out of date:
/index.php
Some Textpattern files have been modified:
/../index.php
That’s from the prior mod(s) (jpcache) and whatever you did last night.
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, disk_free_space, diskfreespace, highlight_file, ini_alter, ini_restore, openlog, proc_nice, show_source, symlink
For more details see here. Although two of those functions are used by Txp, the site has clean URLs working so I don’t think there’s a concern.
.htaccess file contents:
Pretty standard Txp .htaccess. The only addition is the rah_sitemap rule, and that looks fine, and a couple of redirects at the bottom; those also look OK to me, though I’m no mod_rewrite expert.
Now that you can log in again, the best way to begin figuring out what’s up with the sidebar is to show us the tag trace from that page. (See my sig for instructions.) Note that when you put the site into debug mode (necessary to output a tag trace), any error messages that were previously suppressed when the site was in “live” mode will now appear at the top of the page, so I suggest checking the live site immediately, grabbing the trace, and if there are error messages showing, quickly return the site to “live”.
As Els notes, it’s best to leave old posts up. There’s no security issue with posting the site URL, as long as the site doesn’t have any completely obvious login/password combos.
Code is topiary
Offline
#39 2011-01-26 16:15:28
- n2
- Member

- Registered: 2011-01-25
- Posts: 56
Re: HELP! Side-bar disappeared
OK.
Meanwhile…. do you know how i can solve the sidebar problem?
Thanks.
If code is poetry, I’m a lousy poet.
Offline
Re: HELP! Side-bar disappeared
Note the second-to-last paragraph of my previous post.
Code is topiary
Offline
#41 2011-01-26 16:22:38
- n2
- Member

- Registered: 2011-01-25
- Posts: 56
Re: HELP! Side-bar disappeared
Thanks so much, Jeff.
Here’s the tag trace at last:
Tag error: <txp:site_names/> -> Textpattern Warning: tag does not exist on line 983
textpattern/publish.php:983 trigger_error()
processTags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/lib/txplib_misc.php:1460 parse()
textpattern/publish/taghandlers.php:249 parse_form()
textpattern/publish.php:970 output_form()
processTags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/publish.php:466 parse()
index.php:44 textpattern()
jsoo wrote:
….. show us the tag trace from that page.
If code is poetry, I’m a lousy poet.
Offline
Re: HELP! Side-bar disappeared
Thanks. Tag trace is actually the part from the bottom of the page — it’s entirely enclosed in HTML comment delimiters, so it doesn’t appear unless you “view source” It’s typically quite long — at least a couple of screenfuls.
The error message you’ve shown is because txp:site_names/> is not a legitimate Txp tag. It should be <txp:site_name />. I can’t tell you where it is without seeing the full trace. Quickest way to find such things is install the smd_where_used plugin to search for it.
Code is topiary
Offline
#43 2011-01-26 16:43:34
- n2
- Member

- Registered: 2011-01-25
- Posts: 56
Re: HELP! Side-bar disappeared
Thanks. Here’s what i did to fix the log-in and index.php errors:
.
1) I downloaded a fresh copy of Textpattern install files, but did not install.
2) I unzipped them so i could extract and view the original index.php files in both the admin folder and the inner TP folder in public_html
3) Then i compared line-by-line the new install files with the existing ones on my friend’s server.
4) I corrected or replaced the parts of the code that seemed incorrect or incomplete, including any syntax errors.
5) I also took at any references to the new version (4.3) in my own files since it’s in an earlier version.
6) I uploaded the two corrected index.php files to my friend’s server and they worked fine.
7) I thanked the cyber-Gods and finally went to sleep at 4 am. :) :(
.
jsoo wrote:
Glad you got it fixed; sorry it took an all-nighter. What did you change?
Last edited by n2 (2011-01-26 16:44:54)
If code is poetry, I’m a lousy poet.
Offline
#44 2011-01-26 16:48:04
- n2
- Member

- Registered: 2011-01-25
- Posts: 56
Re: HELP! Side-bar disappeared
Ok; did the tag-trace and here’s the end of the source code:
<txp:output_form form=“nav_promote” />
[SQL (0.000509): select Form from txp_form where name=‘nav_promote’]
[Form: nav_promote]
<txp:chh_if_data>
[<txp:chh_if_data>: true]
<txp:linklist category=“Promoted-Pages” sort=“linksort asc” />
[SQL (0.001383): select *, unix_timestamp(date) as uDate from txp_link where category IN (‘Promoted-Pages’) order by linksort asc ]
[<txp:chh_if_data>: false]
</txp:chh_if_data>
<txp:output_form form=“newsletter” />
[SQL (0.000465): select Form from txp_form where name=‘newsletter’]
[Form: newsletter]
<txp:output_form form=“siteinfo” />
[SQL (0.001141): select Form from txp_form where name=‘siteinfo’]
[Form: siteinfo]
<txp:site_url/>
<txp:output_form form=“footer” />
[SQL (0.000927): select Form from txp_form where name=‘footer’]
[Form: footer]
[ ~~~ secondpass ~~~ ]
Last edited by n2 (2011-01-26 20:35:42)
If code is poetry, I’m a lousy poet.
Offline
#45 2011-01-26 18:06:17
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: HELP! Side-bar disappeared
n2 wrote:
Thanks. Here’s what i did to fix the log-in and index.php errors:
1) I downloaded a fresh copy of Textpattern install files, but did not install.
2) I unzipped them so i could extract and view the original index.php files in both the admin folder and the inner TP folder in public_html
3) Then i compared line-by-line the new install files with the existing ones on my friend’s server.
4) I corrected or replaced the parts of the code that seemed incorrect or incomplete, including any syntax errors.
5) I also took at any references to the new version (4.3) in my own files since it’s in an earlier version.
6) I uploaded the two corrected index.php files to my friend’s server and they worked fine.
7) I thanked the cyber-Gods and finally went to sleep at 4 am. :) :(
None of the .php files should be modified anyway. Though it’s a good thing to check what exactly was modified, it’s better (and easier) to just overwrite the modified files with the default ones.
And when you’re done with fixing your site, upgrade to the latest version :)
Last edited by els (2011-01-26 18:06:51)
Offline