Hello ,
All links from another sites or mails go to blank page in my website !
The same as my problem in previous version of tinyportal .
like this : http://www.yarantoos.com/index.php/topic,3619.new.html#new
I upgrade my forum and tinyportal recently but problem didn't solve and it has problem yet !
We install some forums ( Just SMF installed ) in my server and they haven't this problem .
I'm sure that if I disable tiny portal , we havn't this error ! :'(
How can I fix this problem ?
ps: in my forum i just intall TP package in my forum and we don't use any thing else !
What I did notice is that the link you posted shows this.
topic,3619
Its should read this:
topic=3619
Where did you copy your link from? I'm looking at your site and everything looks fine to me.
I changed your link to use "=" and I did not have the blank page problem. Now, to answer the question of how to fix it? I don't know... Hopefully someone that knows will come along.
this link show blank page too :
http://www.yarantoos.com/index.php/topic=3619.new.html#new
And also that link is wrong
index.php always need the ? right after so it looks like index.php?topic=3619
No No ,
I enable Search engine friendly URLs in Features and Options that it remove query with ? and They will look like index.php/topic,1.html.
Also I disable this feature and it doesn't solve !
I think you have to take this to the simplemachines forums as it's their software that gives those errors.
one last suggestion : uninstall TP
Disable search engine friendly URL's
Then reinstall TP
it could be an issue cos TP isnt search engine friendly url's enabled yet best to my knowledge.
And if it installs correctly - keep them off
We have some SMF forums like :
www.1roze.com/forum
www.backyou.com/forum
www.irschool.com/forum
and they haven't this problem . beacuse we don't install TP package for them . this is TP bug / error
Quote from: akulion on October 03, 2006, 06:15:40 PM
one last suggestion : uninstall TP
Disable search engine friendly URL's
Then reinstall TP
it could be an issue cos TP isnt search engine friendly url's enabled yet best to my knowledge.
And if it installs correctly - keep them off
If i unistall TP , what will happen for my database ? Do I lose my TP data ?
Just beacuse one or several other mods dont work in TP thats ALSO a mod, dont mean that TP is the crook in this ;)
no u wont lose ur database
tp is just a mod :)
Quote from: akulion on October 03, 2006, 06:33:03 PM
no u wont lose ur database
tp is just a mod :)
I mean for TP tables ? like upload files information , ...
Quote from: Mrs G6 on October 03, 2006, 06:31:37 PM
Just beacuse one or several other mods dont work in TP thats ALSO a mod, dont mean that TP is the crook in this ;)
I said that I just install TP package for my forum and I don't use any thing else .
Thanks anyway .
Again I ask you, WHERE are you getting these links from? I browse through your forum with no blank page problems at all.
ichbin is right when i replace your url (the one u gave) with = instead of ,
everything is perfecctly ok...
So I dont know either where ur getting ur url from either
As for TP uninstal, ur db tables will be deleted I believe, but that not such a problem since u can easily copy the block codes first before ninstalling
Quote from: IchBinâââ,¬Å¾Ã,¢ on October 03, 2006, 06:49:17 PM
Again I ask you, WHERE are you getting these links from? I browse through your forum with no blank page problems at all.
It seem this problem happen for some visitors not for all .
I check my links in firefox , IE , opera and all of them show blank page !
I think this happen for visitors which their ISP use cashe !
I take this links from my board index :
http://www.yarantoos.com/index.php/board,2.0.html
Please see the url of topics .
Thanks to TP team that they want to help me :)
Quote from: adnan on October 03, 2006, 02:19:03 PM
like this : http://www.yarantoos.com/index.php/topic,3619.new.html#new
Quote from: adnan on October 03, 2006, 05:32:18 PM
this link show blank page too :
http://www.yarantoos.com/index.php/topic=3619.new.html#new
It is the anchor that is not working (#new)
The rest of the link works fine in both cases. Looks like your friendly URLs are not being processed correctly. I'm not sure if there are any issues with TP and friendly URLs. I'll see if I can replicate the issue on a test site.
but this site generate this links (#new ) like my website but tinyportal doesn't enable search engine freindly feature .
This is body of alert mail from tinyportal to me :
QuoteA reply has been posted to a topic you are watching by Thurnok.
View the reply at: http://www.tinyportal.net/smf/index.php?topic=9229.new;topicseen#new
Unsubscribe to this topic by clicking here: http://www.tinyportal.net/smf/index.php?action=notify;topic=9229.0
No it doesent.
See the index.php?topic=9229.new
yours look like index.php/
Quote from: Mrs G6 on October 03, 2006, 08:35:10 PM
No it doesent.
See the index.php?topic=9229.new
yours look like index.php/
beacuse tinyportal doesn't enable search engine friendly feature !
Please check this link :
http://www.backyou.com/forum/index.php/topic,30.0.html
It's ok ! beacuse I don't Install TP on that forum !
Also this link is ok too ( with #new ) :
http://www.backyou.com/forum/index.php/topic,30.0.html;topicseen#new
But yarantoos doesn't work beacuse of TP installed ! :(
Can you change the default language to English and see if you still have this problem? I also noticed that the copyright does not show on your blank page. So something seems to be stopping the page from fully loading.
I changed to english default language .
Please inform me , if you checked my forums in english .
Thanks in advance
Quote from: adnan on October 03, 2006, 08:32:28 PM
but this site generate this links (#new ) like my website but tinyportal doesn't enable search engine freindly feature .
I did not say that #new is invalid. The pound sign (#) denotes an HTML Anchor. This is normal, and yes, of course it works here and you see them in links. What I said was, it appears your pages work without an anchor in the link, so apparently the friendly URLs are not being "processed" (by your TP/SMF site) appropriately.
Whether there is a TP issue, I would have to first replicate the issue in kind. I'll attempt to do this after work today on one of my test sites.
Thank you Thurnok :)
Can I change my default language to persian in my forum ?
I noticed the issues were still there. You can change it back yes.
Hello Thurnok ,
Did your work on this issue ?
What's problem ?
Should I disable search engine friendly and re-install TP ?
Ok... I tried this a number of times, and mine seem to be working fine with friendly URLs set. All tests were done on SMF 1.1RC3 w/TP 0.9.5.
Here's 2 screenshots (1 each of Mozilla and IE). Notice the URL in the URL bar of Mozilla and IE. Notice the item is displayed properly. I can only surmise something weird happened during your install. It does seem to work as advertised. Whether the issue could have anything to do with your actual server or not, you might need to ask your Host provider. I have 3 different servers, tried it on each one and appears to work on all of mine, but different hosts provide different settings and you just never know.
This feature does only work on Apache servers however, so are you 100% positive that your server is running Apache?
---[edit]---
oops.. let me add... if you set SMF up with search friendly URLs prior to installing TP and then installed TP, you may need to uninstall TP, reset to non-search friendly URLs, and reinstall TP. But once you have done that, you should be able to re-enable search friendly URLs, and TP should work with them. This is assuming there isn't a Host provider issue, and that you are using an Apache webserver.
Dear Thurnok
Thanks for your help .
I'm Domain and hosting provider and I know about my servers .
Yes , Our servers are linux and run apache .
I changed server of yarantoos.com and the problem doesn't solve .
Yes , it was enable search engine friendly on my SMF and then I installed TP .
Ok , I unistall TP and disable search engine friendly and re-install TP again .
Will it delete all TP folders by uninstall TP ? like tp-downloads ? and should I get beckup ?
We uploaded many files in download center module via tinyportal . upload files detail will delete ?
It doesn't remove them on my test sites when I uninstall, however, you should backup your datafiles (tp-downloads) just to be safe. It does remove the database information, but you can get that back in by backing up the smf_tp_dlmanager table in the database to restore only that part later. In general, I backup my whole site when making changes. If you do this, just remember that you only want to copy the tp-downloads back if necessary, and not the whole site as part of the problem may be in one of the php files you backup. I'd also backup your database just as a precaution as well. This will let you get back to where you were in the event of something unforseen. Obviously you do not want to overwrite your database with the backup unless it breaks something else.
So backup all, uninstall TP, reset to non-friendly URLs, reinstall TP, copy your tp-downloads files back in (if necessary), test to make sure your site is working normally, ... then, re-enable search friendly URLs.
One last note, if you have a number of other MODs installed, you may want to uninstall those as well during the phase where you are uninstalling TP. Various mods can interact with each other since as good as the SMF Package Scheduler is, its not a perfect system. If you simply had a fresh install of SMF 1.1RC3 and TP basically, then you should be ok and not have to worry about that part.
I re-install TP but the problem doesn't solve even with disabe search engine friendly !
but I found the problem !
I write a php script and run in into php block and it made this problem .
I disable this block and I see problem solved ! ::)
This script save top refers into file . please see this code and do you know why this php code made this problem and can I fix this code ?
$key=";";
$fp=fopen("url.txt",'r');
$read=fgets($fp,10240);
fclose($fp);
if ($_SERVER["HTTP_REFERER"])
if (!strstr($_SERVER["HTTP_REFERER"],"yarantoos") )
if ( ! strstr($_SERVER["HTTP_REFERER"],"host-tracker"))
{
$read=$_SERVER["HTTP_REFERER"].$key.$read;
$fp=fopen("url.txt",'w');
$url=strtok($read,$key);
print "<ol>";
for($i=0;$i<12;$i++)
{
print '<li><a href="'.$url.'">'.substr($url,7,20)."</a></li>";
fputs($fp,$url);
fputs($fp,$key);
$url=strtok($key);
}
fclose($fp);
print "</ol>";
exit;
}
$url=strtok($read,$key);
print "<ol>";
for($i=0;$i<12;$i++)
{
print '<li><a href="'.$url.'">'.substr($url,7,20)."</a></li>";
$url=strtok($key);
}
print "</ol>";
It seem tinyportal use eval function to run php blocks !
Perhaps it doesn't work fine with TP . why does TP Team use eval to run php codes ? They could use "include" function !
Here, try this. I cleaned up your code a bit, added some error prevention, and removed the problem (the exit statement). I believe this will work for you, let me know.
$key = ';';
$read = '';
$fp = @fopen('url.txt', 'r');
if ($fp){
$read = fgets($fp, 10240);
fclose($fp);
}
if (!empty($_SERVER['HTTP_REFERER'])){
if (!strpos($_SERVER['HTTP_REFERER'], 'yarantoos') && !strpos($_SERVER['HTTP_REFERER'], 'host-tracker')){
$read = $_SERVER['HTTP_REFERER'] . $key . $read;
$fp = fopen('url.txt', 'w');
$url = strtok($read, $key);
echo '<ol>';
for($i=0; $i<12; $i++){
if (!empty($url)){
echo '<li><a href="' . $url . '">' . substr($url, 7, 20) . '</a></li>';
fwrite($fp, $url . $key);
}
$url = strtok($key);
}
fclose($fp);
echo '</ol>';
}
} else {
$url = strtok($read, $key);
echo '<ol>';
for($i=0; $i<12; $i++){
if (!empty($url)){
echo '<li><a href="' . $url . '">' . substr($url, 7, 20) . '</a></li>';
$url = strtok($key);
}
}
echo '</ol>';
}
In case of the search friendly url issue, SMF can have it on and it should work as expected when TP is installed..but the specific TP calls do not use it. So reading the forum should be fine, but not for example the Downloads manager.
As for using php in blocks, it can't be "included"..that would signify external files. TP use the db to store the php code for blocks. Remember that blocks and even php articles are NOT meant to be used with full-blown php applications, it can't efficiently do that. Rather it can use all of SMF already loaded data and do some php magic on its own.
If it doesn't work, the script is too complex, or rely on things that SMF/TP already have changed or use.
However, one thing for you to keep in mind adnan, you can make a block that has the following:
include("myphpfile.php");
and have a php file loaded as though it were part of the block... remember to do extensive testing when doing this however...
Thank you Thurnok !
Your codes is working fine with TP .