Welcome to Geeklog, Anonymous Saturday, January 04 2025 @ 05:14 am EST
Geeklog Forums
Error in article body
Status: offline
dacxjo
Forum User
Newbie
Registered: 09/08/06
Posts: 3
When we post an article on our site, geeklog shows the users the introduction text, but when the click on "read more", the browser goes back to the home page of our site.
We traced the error by finding out what url it was trying to point to, and found that a slash is missing for some reason in the http://(whatever) when you click on "read more".
Obviously one line of one file got munged, and I'd like to trace this down and just add the slash back in. Any clue what file it is that handles the "read more" link?
Thanks.
We traced the error by finding out what url it was trying to point to, and found that a slash is missing for some reason in the http://(whatever) when you click on "read more".
Obviously one line of one file got munged, and I'd like to trace this down and just add the slash back in. Any clue what file it is that handles the "read more" link?
Thanks.
9
5
Quote
Status: offline
tmarquez
Forum User
Regular Poster
Registered: 06/17/03
Posts: 70
My first guess would be something is wrong with your theme (layout/) but from looking at my files, that doesn't seem like it may be the place to look. Another thing to check is your config.php file and the line that says
$_CONF['site_url']
Make sure that is pointing to your site. Can you give an example of the link that is incorrect?
T.Marquez Jr. -
Webmaster -
www.indianapolisfilm.net - Geeklog 1.4.0sr5-1
$_CONF['site_url']
Make sure that is pointing to your site. Can you give an example of the link that is incorrect?
T.Marquez Jr. -
Webmaster -
www.indianapolisfilm.net - Geeklog 1.4.0sr5-1
6
4
Quote
Status: offline
dacxjo
Forum User
Newbie
Registered: 09/08/06
Posts: 3
I'm working on trying to reproduce how we found the broken URL so I can give that to you.
config.php looks good.... site_url points to the correct place.
I've looked at the theme (professional) and can't find anything amiss there.
It might be worth noting here that I am still using 3.11sr1 because it was installed by "Fantastico", and I'm using a menu plugin to give me submenu capabilities and now Fantistico isn't so fantastic and refuses to update it. It seems to be quite the pain to update GL.
I've thought about copying all the text from the posts, re-installing from scratch, and trying to re-enter them, since a database backup and restore apparently won't work, but then I lose the comments others have posted. This is really quite frustrating all around.
config.php looks good.... site_url points to the correct place.
I've looked at the theme (professional) and can't find anything amiss there.
It might be worth noting here that I am still using 3.11sr1 because it was installed by "Fantastico", and I'm using a menu plugin to give me submenu capabilities and now Fantistico isn't so fantastic and refuses to update it. It seems to be quite the pain to update GL.
I've thought about copying all the text from the posts, re-installing from scratch, and trying to re-enter them, since a database backup and restore apparently won't work, but then I lose the comments others have posted. This is really quite frustrating all around.
6
7
Quote
Status: offline
tmarquez
Forum User
Regular Poster
Registered: 06/17/03
Posts: 70
Quote by dacxjo:
It might be worth noting here that I am still using 3.11sr1 because it was installed by "Fantastico", and I'm using a menu plugin to give me submenu capabilities and now Fantistico isn't so fantastic and refuses to update it. It seems to be quite the pain to update GL.
It might be worth noting here that I am still using 3.11sr1 because it was installed by "Fantastico", and I'm using a menu plugin to give me submenu capabilities and now Fantistico isn't so fantastic and refuses to update it. It seems to be quite the pain to update GL.
Noted. I will have to point out that Fantistico will only get you so far, and if I'm not mistaken isn't necessarily an "approved" away of installing geeklog. But, I am speaking as someone who has always installed from scratch.
Quote by dacxjo:
I've thought about copying all the text from the posts, re-installing from scratch, and trying to re-enter them, since a database backup and restore apparently won't work, but then I lose the comments others have posted. This is really quite frustrating all around.
I've thought about copying all the text from the posts, re-installing from scratch, and trying to re-enter them, since a database backup and restore apparently won't work, but then I lose the comments others have posted. This is really quite frustrating all around.
Amen. But you will learn a lot. I don't know much about the menu plugin, but one thing that has helped me quickly upgrade in the past (assuming shell accesss is available) is the copy -R command to move all the new files. Don't forget to back up your lib-custom.php and config.php.
T.Marquez Jr. -
Webmaster -
www.indianapolisfilm.net - Geeklog 1.4.0sr5-1
5
5
Quote
Status: offline
dacxjo
Forum User
Newbie
Registered: 09/08/06
Posts: 3
I'm a little confused... if you don't use the menu plugin, how do you organize your site? I found the existing menu structure to be completely inadequate, because, for example, My wife has a blog section, I have a blog section, we share a book review section, there's a genealogical section, she's a pastor, and there is a section there on her devotional/inspirational thoughts, etc. That's all hard to do with the native menu system.
If I could get that sorted out without the plugin, upgrading would be a lot less painful.
I am linux adept, btw.
In any case, if I could just find out what happens when you click "read_more"... what files are called? If I knew that, perhaps I could find the error more easily.
If I could get that sorted out without the plugin, upgrading would be a lot less painful.
I am linux adept, btw.
In any case, if I could just find out what happens when you click "read_more"... what files are called? If I knew that, perhaps I could find the error more easily.
5
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by dacxjo: In any case, if I could just find out what happens when you click "read_more"... what files are called? If I knew that, perhaps I could find the error more easily.
Well, "read more" links to article.php, which uses system/lib-story.php to actually render the story. So start with those two files.
HTH
bye, Dirk
5
6
Quote
Dacxjo
Anonymous
Thank you, Dirk!
My suspicion is that the error is someplace in the puctuation of the following lines, though I didn't get enough sleep, and my mind is a bit cloudy. The editor is not liking the double quote in the next to the last statement, but I'm apparently too tired to see what's wrong. This is from the file lib-story.php
if( !empty( $A['bodytext'] ))
{
$article->set_var( 'lang_readmore', $LANG01[2] );
$article->set_var( 'lang_readmore_words', $LANG01[62] );
$numwords = sizeof( explode( ' ', strip_tags( $A['bodytext'] )));
$article->set_var( 'readmore_words', $numwords );
$article->set_var( 'readmore_link', ''
. $LANG01[2] . ' (' . $numwords . ' ' . $LANG01[62]
. ') ' );
$article->set_var( 'start_readmore_anchortag', '' );
$article->set_var( 'end_readmore_anchortag', '' );
}
My suspicion is that the error is someplace in the puctuation of the following lines, though I didn't get enough sleep, and my mind is a bit cloudy. The editor is not liking the double quote in the next to the last statement, but I'm apparently too tired to see what's wrong. This is from the file lib-story.php
if( !empty( $A['bodytext'] ))
{
$article->set_var( 'lang_readmore', $LANG01[2] );
$article->set_var( 'lang_readmore_words', $LANG01[62] );
$numwords = sizeof( explode( ' ', strip_tags( $A['bodytext'] )));
$article->set_var( 'readmore_words', $numwords );
$article->set_var( 'readmore_link', ''
. $LANG01[2] . ' (' . $numwords . ' ' . $LANG01[62]
. ') ' );
$article->set_var( 'start_readmore_anchortag', '' );
$article->set_var( 'end_readmore_anchortag', '' );
}
4
4
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The forum has stripped some of the HTML from your post, so it's hard to tell what's wrong. Here's how it should look like:
{
$article->set_var( 'lang_readmore', $LANG01[2] );
$article->set_var( 'lang_readmore_words', $LANG01[62] );
$numwords = COM_NumberFormat (sizeof( explode( ' ', strip_tags( $bodytext ))));
$article->set_var( 'readmore_words', $numwords );
$article->set_var( 'readmore_link', '<a href="' . $articleUrl . '">'
. $LANG01[2] . '</a> (' . $numwords . ' ' . $LANG01[62]
. ') ' );
$article->set_var( 'start_readmore_anchortag', '<a href="'
. $articleUrl . '">' );
$article->set_var( 'end_readmore_anchortag', '</a>' );
}
Of course, you could always get a fresh copy of that file from the tarball ...
bye, Dirk
Text Formatted Code
if( !empty( $bodytext )){
$article->set_var( 'lang_readmore', $LANG01[2] );
$article->set_var( 'lang_readmore_words', $LANG01[62] );
$numwords = COM_NumberFormat (sizeof( explode( ' ', strip_tags( $bodytext ))));
$article->set_var( 'readmore_words', $numwords );
$article->set_var( 'readmore_link', '<a href="' . $articleUrl . '">'
. $LANG01[2] . '</a> (' . $numwords . ' ' . $LANG01[62]
. ') ' );
$article->set_var( 'start_readmore_anchortag', '<a href="'
. $articleUrl . '">' );
$article->set_var( 'end_readmore_anchortag', '</a>' );
}
Of course, you could always get a fresh copy of that file from the tarball ...
bye, Dirk
4
3
Quote
Dacxjo
Anonymous
Well, I tried a fresh copy of both files from the tarball, backing up the original ones and dropping in the fresh ones. That failed to produce any improvement. My guess, then, is that the problem lies elsewhere. I'm going to comb through config.php again to see if I missed something there. The puzzling thing is that this suddenly stopped working without me having made any changes on my end. The only change I'm aware of on the server's end is that they upgraded the version of php. Are there known issues with that?
5
4
Quote
All times are EST. The time is now 05:14 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content