PDA

View Full Version : Solved white page when translating rss feeds



Snake
11-04-10, 01:09
i get a blank page when i view any of the translated rss feeds, any ideas why?

thanks.

vBET
11-04-10, 15:14
Which type of RSS are you testing - please send full URL. Does it happens on original RSS also or just on translated one?

Snake
11-04-10, 15:19
Just translated RSS, normal RSS is fine, you have my forum URL, you can test it there.

vBET
11-04-10, 22:54
OK - I see it on your forum. Unfortunately we are not able to reproduce it on our forums.

It would be best if we get access to your forum and check it - it can be also test instance/copy - it just have to behave same way. Without reproducing the issue we cannot work on it. Can you please PM me access details to your Admin CP and FTP? As I wrote it can be some test instance - I just need behavior not the content. Or at least do you have any error logs about RSS?...

As you can check here and on this forum (http://www.forum.simple-nlp.pl/) RSS are working fine. On our test forums also. At this moment you are the only one who has the issue and your forum is the only place where we can check it.

Snake
11-04-10, 22:58
I am the only admin on my forum, please give me instructions for troubleshooting.

vBET
12-04-10, 13:08
I'm afraid that it is too complicated and requires interaction - we need to find cause of the issue. I would be able to give you quick fix instructions if I knew what happens there and be able to reproduce it on my side. Without knowing where the bug is we simply have no clue about how, what and do fix it (it can be caused by conflict by some other mod, wrong configuration...). Without possibility to reproduce it we do not know does our changes fixes the issue. And you are the only one who have the issue. That is why it would be best if we have access - even to your test forum. As I already wrote I do not need your forum content I just need it's behavior. I understand that you do not want to share access to your real forum. Do you have test instance where same thing happens?

At this moment for simplest instructions please open file /includes/vbenterprisetranslator_functions_external.php and determine where code stops evaluating by putting echo 'TEST 1'; (and changing number for each echo) between code lines. If you know what is binary search then use this algorithm. Evaluation starts in function vbet_translateExternal.

If you think that you are able to determine where the issue is then we can do it this way, but it will take much more time - especially on your side, what is not necessary because you have our support. Of course we understand that you do not want our full support, so let's try do it your way.

Snake
15-04-10, 20:57
Getting another issue here Computer Juice - Site Spy (http://www.computer-juice.com/forums/pt/vaispy.php)

Seems the script is not getting the css file properly and is looking in wrong place for images...

- I will try what you said for other issue.

Snake
15-04-10, 21:02
I'm afraid that it is too complicated and requires interaction - we need to find cause of the issue. I would be able to give you quick fix instructions if I knew what happens there and be able to reproduce it on my side. Without knowing where the bug is we simply have no clue about how, what and do fix it (it can be caused by conflict by some other mod, wrong configuration...). Without possibility to reproduce it we do not know does our changes fixes the issue. And you are the only one who have the issue. That is why it would be best if we have access - even to your test forum. As I already wrote I do not need your forum content I just need it's behavior. I understand that you do not want to share access to your real forum. Do you have test instance where same thing happens?

At this moment for simplest instructions please open file /includes/vbenterprisetranslator_functions_external.php and determine where code stops evaluating by putting echo 'TEST 1'; (and changing number for each echo) between code lines. If you know what is binary search then use this algorithm. Evaluation starts in function vbet_translateExternal.

If you think that you are able to determine where the issue is then we can do it this way, but it will take much more time - especially on your side, what is not necessary because you have our support. Of course we understand that you do not want our full support, so let's try do it your way.

Your telling me if you were evaluation this problem you would spend hours adding echo 'TEST 1'; beneath each and every line of code in that file... really?

vBET
16-04-10, 02:27
No - I never wrote anything like that. I have no idea why you even think about that...

Those where hints for you, because those where easiest to describe. 1st - you miss the point about binary search. 2nd - we have ways to do this without any output changing and we are able to do this fast, cause we know our code and have lot of experience in finding bugs or conflicts with other plugins.

Anyway - your question doesn't give you any step closer to the solution. We offer you our full support. You can accept what you paid for, or you can refuse it. We will honor you decision and try to help you even if you refuse our support. Still please focus on issue - you want try to do this yourself, then please fallow our hints. You want us to safe your time, please let us in. Please note that all our intentions are to help you.

Snake
16-04-10, 02:31
Right, and the point i am making is i can follow instructions, so, please give me instructions.

I do not want to give you access as you have no online reputation, the ONLY people i give access to my forums are me, vbulletin and vbseo, because i can trust them.

You are new to me, so, i would prefer to have instructions, not full support.

Thanks.

vBET
16-04-10, 02:56
It is your decision and we will honor it even it it makes things more complicated :) Please remember that you always can just make copy of forum and give us access to test instance, not real forum.

Please fallow instructions which we already gave you. You do not have to set echo after each line - find how binary search is working. Put some in the beginning, some at the end, some in the middle. Check which are shown which not, put few between last one and the one which didn't shown, and so on. This way you will determine where code breaks. Another hints - use URL for RSS2 and set echos in functions for RSS2 (lot of code is not used at all). As I already wrote you - we know our code and know how and where to look efficiently. For you can be easier if you just find occurrences of RSS2 in code. Please start from the beginning (look in hints before) - it can be something before evaluation goes to RSS2 specific code.

Also before all of that please check do you have any other plugins working on hook external_complete and disable it temporarily to check does some of it causes conflict.

Please let us know about your results.

Snake
16-04-10, 11:53
I now have it working, seems i had a plugin disabled by mistake.

But the translated feeds do not validate, lots of errors.

Feed Validator Results: http://www.computer-juice.com/forums/zh-CN/external.php?type=RSS2 (http://beta.feedvalidator.org/check.cgi?url=http://www.computer-juice.com/forums/zh-CN/external.php%3Ftype%3DRSS2)

And yours here are bad;

Feed Validator Results: http://www.vbenterprisetranslator.com/forum/zh-CN/external.php?type=RSS2 (http://beta.feedvalidator.org/check.cgi?url=http://www.vbenterprisetranslator.com/forum/zh-CN/external.php%3Ftype%3DRSS2)

vBET
16-04-10, 16:28
As I see those are valid and some hints are to improve.

Please note that our RSS is OK. 1st issue is about content which about what is in post not on our side. 2nd is about how vBulletin generates RSS channels - just note that booth happens on not translated RSS channel, when vBET does nothing.

In your case there really seems to be an issue. It looks like wrong header is send. I'm going to code right now to look for issue - should give you quick fix in a while :)

Snake
16-04-10, 16:34
My feed has issue with encoding, special characters and 500 server error code.

Your feed still gives 500 server error; which is bad.

This feed does not validate.

Server returned HTTP Error 500: Internal Server Error

vBET
16-04-10, 16:53
Thanks for finding this bug :) For solution - see quick fix below - it will be included in next release.

Quick fix:
1. Find plugin named "Translate RSS" and go to edit it.
2. Find there:

vbet_external_complete(&$output);
3. Replace by:

vbet_external_complete(&$output, &$headers);
4. Save changes
5. Edit file /includes/vbenterprisetranslator_functions_hooks.php
6. Find there:

function vbet_external_complete(&$output) {
7. Replace by:

function vbet_external_complete(&$output, &$headers) {
8. Upload changed fie to server.

Please let us know did it solve your RSS issues. This solution was tested on our test forums and solves encoding issue.

Snake
16-04-10, 17:10
Same.

http://www.computer-juice.com/forums/zh-CN/external.php?type=RSS2

Feed Validator Results: http://www.computer-juice.com/forums/zh-CN/external.php?type=RSS2 (http://beta.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.computer-juice.com%2Fforums%2Fzh-CN%2Fexternal.php%3Ftype%3DRSS2)

Also your feed still give 500 error;

http://beta.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.vbenterprisetranslator.com%2Fforum%2Fzh-CN%2Fexternal.php%3Ftype%3DRSS2

Normal vbulletin rss does not;

http://beta.feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.vbenterprisetranslator.com%2Fforum%2Fexternal.php%3Ftype%3DRSS2

vBET
16-04-10, 17:17
You are looking right now on cached content (RSS cache is handled by vBulletin).

I checked your RSS for /ar/ and it is fine. zh-CN will be fine after cache expire :) Please just check it on something which was not cached before (like Arabic translation) and let us know the results.

Snake
16-04-10, 17:17
Also, another bug, in your RSS too, if you look into validation scroll down, all the links are pointing to the English pages, not the new language pages, so RSS page is not even linking to right threads!

vBET
16-04-10, 17:20
Also, another bug, in your RSS too, if you look into validation scroll down, all the links are pointing to the English pages, not the new language pages, so RSS page is not even linking to right threads!

As I see on your RSS channel for Arabic that everything is OK. Maybe I miss something. Please send exact RSS channel URL to your forum, where issue exists and give exact URL which is wrong in this channel.

Snake
16-04-10, 17:20
Ok, but, still 500 error, google bot will not like 500 error header!

Also the links are in this format.

***.computer-juice.com/forums/bg/showthread.php?t=28848&goto=newpost

Shouldn't they be seo'd urls?

vBET
16-04-10, 17:34
Ok, but, still 500 error, google bot will not like 500 error header!

Also the links are in this format.

***.computer-juice.com/forums/bg/showthread.php?t=28848&goto=newpost

Shouldn't they be seo'd urls?

About 500 header - at this moment I have no idea why validator claims about 500 error - same URL in browser gives appropriate content. Also it appears only on some translations on other not. Maybe it is something with cache - we will back to it after cache expires and check does it is some existing issue or just cached history.

About links - yes those should be seo'd urls. Please tell what is your value for "Forum directory" setting.

Snake
16-04-10, 19:26
Must be cache issue, all new translated rss feeds are now 100% ok, thank you.

Snake
20-04-10, 13:24
Ok so problem is feeds translated before this fix still have errors and wrong non seo urls.

How do i delete old feeds cache so new feed with bug fixes can work.

Thanks.

vBET
21-04-10, 02:27
It should be done automatically - RSS cache time is measured in minutes, not in days... I do not know does/where vBulletin allows to clear RSS cache manually. Yoou can try to set it to low value (like 1 minute) when you are making tests, and after that go back to previous one.

As I wrote It shouldn't be cached for so long. Please make sure that you are looking on actual channel output not cached on your side (like in browser cache). Please give me URL to RSS which is still not correct - I will check it on my side. If it will be necessary we will look for bug, but first let check does it really exists.

Also please send us your 2 first rules for vBET and make sure that you set your forum directory to /forums in vBET configuration.

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations supported by vBET 4.10.1