News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SSI Error No input file specified. for recent topics links

Started by genusis, December 18, 2008, 01:33:21 PM

Previous topic - Next topic

genusis

Well i have recent topics on my home page they use to work but now when i click on them they say

No input file specified.

is there a way to fix it. the links they give are weird as well like

http://spirea.kozlowski.ws/forum/index.php/topic,159.msg671/topicseen.html#new

Weird if you want to check it out yourself here..

http://spirea.kozlowski.ws


// Build the array.
$posts[] = array(
'board' => array(
'id' => $row['id_board'],
'name' => $row['board_name'],
'href' => $scripturl . '?board=' . $row['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['board_name'] . '</a>'
),
'topic' => $row['id_topic'],
'poster' => array(
'id' => $row['id_member'],
'name' => $row['poster_name'],
'href' => empty($row['id_member']) ? '' : $scripturl . '?action=profile;u=' . $row['id_member'],
'link' => empty($row['id_member']) ? $row['poster_name'] : '<a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">' . $row['poster_name'] . '</a>'
),
'subject' => $row['subject'],
'replies' => $row['num_replies'],
'views' => $row['num_views'],
'short_subject' => shorten_subject($row['subject'], 25),
'preview' => $row['body'],
'time' => timeformat($row['poster_time']),
'timestamp' => forum_time(true, $row['poster_time']),
'href' => $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . ';topicseen#new',
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.msg' . $row['id_msg'] . '#new" rel="nofollow">' . $row['subject'] . '</a>',
// Retained for compatibility - is technically incorrect!
'new' => !empty($row['is_read']),
'is_new' => empty($row['is_read']),
'new_from' => $row['new_from'],
'icon' => '<img src="' . $settings[$icon_sources[$row['icon']]] . '/post/' . $row['icon'] . '.gif" align="middle" alt="' . $row['icon'] . '" border="0" />',
);
}
$smcFunc['db_free_result']($request);

// Just return it.
if ($output_method != 'echo' || empty($posts))
return $posts;

echo '
<table border="0" class="ssi_table">';
foreach ($posts as $post)
echo '
<tr>
<td align="right" valign="top" nowrap="nowrap">
[', $post['board']['link'], ']
</td>
<td valign="top">
<a href="', $post['href'], '">', $post['subject'], '</a>
', $txt['by'], ' ', $post['poster']['link'], '
', !$post['is_new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new" rel="nofollow"><img src="' . $settings['lang_images_url'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '
</td>
<td align="right" nowrap="nowrap">
', $post['time'], '
</td>
</tr>';
echo '
</table>';






1 hour it works another it doesn't work lmao.
hello I am Genusis
this is my site
http://spirean.com

Rumbaar

Sorry about the delay.

The link you've supplied appears to have the Search Engine friendly URL applied to it.  From looking at your current homepage you've turned this feature off and it's now working correctly?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

genusis

i didn't change anything really it started working itself.
hello I am Genusis
this is my site
http://spirean.com

Rumbaar

Are you sure you didn't have the following on and is now off?
AdminCP->Features and Options->Basic Features=>Search engine friendly URLs

As the URL you've originally posted would come from those and the current format on that page is now default format.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

genusis

im positive, i didn't have that turned on. it was really weird one day it do that the next it would be fine. one day it trow errors even if logging in the next it wouldn't. and ive been having user register problems to from the mysql database...?
hello I am Genusis
this is my site
http://spirean.com

Rumbaar

Actually it's in the Options tab for SMF 2.x.

Can you confirm if it's on or off now?  As the setting is dependant on the settings and availability server side.  Which could indicate why it's a random thing.  But I can't see them changing such capabilities on the fly like that.

But the main thing is that it's working now?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

genusis

i never turned that feature on because my server isn't apache XD. so that was not the cause unless its some bug they haven't fixed. but it works here and there and goes out once in a while still. i tested this with firefox and internet explorer when it didn't work on FF i tried IE neither worked then a day later it will work again X.X i haven't the clue the cause of it..?  Any ideas?
hello I am Genusis
this is my site
http://spirean.com

Rumbaar

Very strange that original URL paths are definetly not standard SMF default URL's, does you host change things?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

genusis

you mean the .html stuff. i changed that so php will work 100% with html because it reconises it as php or shtml now. other than that it didn't cause this problem before until like  2 or 3 weeks after puttign it up. but no my host doesn't change anything i have full access to stuff to do it myself really ^^.
hello I am Genusis
this is my site
http://spirean.com

Rumbaar

Link then (not work):
http://spirea.kozlowski.ws/forum/index.php/topic,159.msg671/topicseen.html#new
This format is usually associated with Search engine friendly URLs.

Link now (works):
http://spirea.kozlowski.ws/forum/index.php?topic=137.msg714;topicseen#new
This is the 'normal' default URL SMF outputs.

Not sure how you got the first one like that.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

genusis

ya my server doesn't support the search engine friendly stuff so i never turned it on so it couldn't have been that.. is there something else that would have caused it?
hello I am Genusis
this is my site
http://spirean.com

Rumbaar

Did you have any .htaccess rewrites in place or other SOE styled mods?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

genusis

no.htaccess stuff and i have mods in place but none that would change the links
hello I am Genusis
this is my site
http://spirean.com

Rumbaar

Well at one point something was altering your URL's to that format, as it appears not to be doing it now I say it's fixed.  But without knowing, then it might occur again.  If that is the case come back and see if we can identify the issue.

Until then I'll mark this as solved?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: