PDA

View Full Version : 404 File not found for PhotoPost



Schmike
11-05-11, 15:12
Got the following error when I tried to integrate with PhotoPost Pro:

Not Found

The requested URL /testvb/forums/vbet_flag-/testvb/forums/gallery/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

kamilkurczak
11-05-11, 19:06
are you sure that you make all integrations steps good?
please - paste here your .htaccess content - I will check it

Schmike
12-05-11, 02:44
Here it is:

RewriteEngine on
Options +FollowSymLinks

#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d

RewriteRule ^(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ showphoto.php?photo=$2&cpage=$4 [QSA]
RewriteRule ^(.*)/p([0-9]+)-(.*).html$ showphoto.php?photo=$2 [QSA]
RewriteRule ^(.*)/p([0-9]+).html$ showphoto.php?photo=$2 [QSA]

RewriteRule ^g([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?cat=$1&page=$3 [QSA]
RewriteRule ^g([0-9]+)-(.*).html$ showgallery.php?cat=$1 [QSA]

RewriteRule ^(.*)/index([0-9]+)-([0-9]+).html$ index.php?cat=$2&page=$3 [QSA]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?cat=$2 [QSA]

RewriteRule ^m([0-9]+)-(.*)-protype([0-9]+).html$ member.php?uid=$1&protype=$3 [QSA]
RewriteRule ^m([0-9]+)-(.*).html$ member.php?uid=$1 [QSA]

RewriteRule ^board.html$ board.php [QSA]
RewriteRule ^b([0-9]+)-(.*).html$ board.php?msg=$1 [QSA]

RewriteRule ^u([0-9]+)-(.*)-cat([0-9]+).html$ showgallery.php?ppuser=$1&cat=$3 [QSA]
RewriteRule ^u([0-9]+)-(.*)-cat([0-9]+)-page([0-9]+).html$ showgallery.php?ppuser=$1&cat=$3&page=$4 [QSA]
RewriteRule ^u([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?ppuser=$1&page=$3 [QSA]
RewriteRule ^u([0-9]+)-(.*).html$ showgallery.php?ppuser=$1 [QSA]

RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&page=$3 [QSA]
RewriteRule ^s([0-9]+)-(.*).html$ showmembers.php?cat=$1 [QSA]

RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/ADDITIONAL_DIRECTORY/(.*)?$ /ADDITIONAL_DIRECTORY/$2?language=$1 [L,QSA]

RewriteCond %{QUERY_STRING} !redirected=
RewriteCond %{QUERY_STRING} language=
RewriteRule ^(.*)$ vbenterprisetranslator_front_controller.php?redirected=$1&vbet_outside=true [L,QSA]

#RewriteCond %{QUERY_STRING} !vbet_outside=true
#RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

kamilkurczak
13-05-11, 16:26
.htaccess file looks good - I will find another solution for you

Schmike
13-05-11, 16:29
Is there any additional settings that I need to set since it's in a subfolder in vb?

Schmike
18-05-11, 03:23
any updates? need to get it up asap.

kamilkurczak
18-05-11, 20:54
aghh I overlooked the fact that you do not type the folder name.
Please change 'SET_HERE_FULL_FORUM_DIRECTORY_PATH' to your full forum directory path.
Should work.
In generaly please check once again all integration steps: http://www.vbenterprisetranslator.com/forum/vbet4-integration-other-plugins/486-vbet-integration-instructions.html#post1787

Schmike
19-05-11, 13:55
you mean in vbenterprisetranslator_front_controller.php?

it was done in this line:
define('VBET_FORUMDIR', '<my path>');

kamilkurczak
19-05-11, 16:10
yes, and change ADDITIONAL_DIRECTORY in htaccess file to to your directory name.

Schmike
19-05-11, 17:40
The value for ADDITIONAL_DIRECTORY is the same as per the path I entered in vbenterprisetranslator_front_controller.php?

It's not working. I've changed it to the path of my gallery with reference to my main site which is /testvb/forums/gallery, it also don't work.

kamilkurczak
21-05-11, 00:24
please check once again all steps from here:
http://www.vbenterprisetranslator.com/forum/vbet4-integration-other-plugins/486-vbet-integration-instructions.html#post1787

n vBET package /do-not-upload/tools/vbenterprisetranslator_front_controller.php change 'SET_HERE_FULL_FORUM_DIRECTORY_PATH' to your full forum directory path.
Do not use '/' at the end. If you do not know what is your path:

1. Upload file vBET_package/do-not-upload/tools/actualdirectory.php to your forum directory.
2. Put URL to actualdirectory.php file in web browser and see the results.

secondly: change there ADDITIONAL_DIRECTORY to your directory name

Schmike
22-05-11, 05:58
all was done.

this is my current file:
RewriteEngine on
Options +FollowSymLinks

#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d

RewriteRule ^(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ showphoto.php?photo=$2&cpage=$4 [QSA]
RewriteRule ^(.*)/p([0-9]+)-(.*).html$ showphoto.php?photo=$2 [QSA]
RewriteRule ^(.*)/p([0-9]+).html$ showphoto.php?photo=$2 [QSA]

RewriteRule ^g([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?cat=$1&page=$3 [QSA]
RewriteRule ^g([0-9]+)-(.*).html$ showgallery.php?cat=$1 [QSA]

RewriteRule ^(.*)/index([0-9]+)-([0-9]+).html$ index.php?cat=$2&page=$3 [QSA]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?cat=$2 [QSA]

RewriteRule ^m([0-9]+)-(.*)-protype([0-9]+).html$ member.php?uid=$1&protype=$3 [QSA]
RewriteRule ^m([0-9]+)-(.*).html$ member.php?uid=$1 [QSA]

RewriteRule ^board.html$ board.php [QSA]
RewriteRule ^b([0-9]+)-(.*).html$ board.php?msg=$1 [QSA]

RewriteRule ^u([0-9]+)-(.*)-cat([0-9]+).html$ showgallery.php?ppuser=$1&cat=$3 [QSA]
RewriteRule ^u([0-9]+)-(.*)-cat([0-9]+)-page([0-9]+).html$ showgallery.php?ppuser=$1&cat=$3&page=$4 [QSA]
RewriteRule ^u([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?ppuser=$1&page=$3 [QSA]
RewriteRule ^u([0-9]+)-(.*).html$ showgallery.php?ppuser=$1 [QSA]

RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&page=$3 [QSA]
RewriteRule ^s([0-9]+)-(.*).html$ showmembers.php?cat=$1 [QSA]

RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/gallery/(.*)?$ /gallery/$2?language=$1 [L,QSA]

RewriteCond %{QUERY_STRING} !redirected=
RewriteCond %{QUERY_STRING} language=
RewriteRule ^(.*)$ vbenterprisetranslator_front_controller.php?redirected=$1&vbet_outside=true [L,QSA]

#RewriteCond %{QUERY_STRING} !vbet_outside=true
#RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

vBET
22-05-11, 16:14
I do not see your license, so I cannot check what is your forum structure (with subdirectory for forum or not), so I cannot tell did you used appropriate hints. I can tell that you did not use it appropriatelly, because rule with language codes shouldn't be in this .htaccess file... Anyway - please PM your license details first and give here your forum URL.

kamilkurczak
23-05-11, 23:17
once again.
Rules from here: http://www.vbenterprisetranslator.com/forum/vbet4-integration-other-plugins/486-vbet-integration-instructions.html#post1787

put in .htaccess from yout MOD folder

2. rules from: http://www.vbenterprisetranslator.com/forum/vbet4-integration-other-plugins/486-vbet-integration-instructions.html#post1785
like:
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/gallery/(.*)?$ /gallery/$2?language=$1 [L,QSA]
paste in your htaccess in your main folder.

Please paste here your two htaccess files after changes (one from mod folder, one forum main directory) and write which is from main folder and write which is from mod folder. I will check it.

Schmike
26-05-11, 17:04
Photopost htaccess:
RewriteEngine on
Options +FollowSymLinks

#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d

RewriteRule ^(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ showphoto.php?photo=$2&cpage=$4 [QSA]
RewriteRule ^(.*)/p([0-9]+)-(.*).html$ showphoto.php?photo=$2 [QSA]
RewriteRule ^(.*)/p([0-9]+).html$ showphoto.php?photo=$2 [QSA]

RewriteRule ^g([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?cat=$1&page=$3 [QSA]
RewriteRule ^g([0-9]+)-(.*).html$ showgallery.php?cat=$1 [QSA]

RewriteRule ^(.*)/index([0-9]+)-([0-9]+).html$ index.php?cat=$2&page=$3 [QSA]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?cat=$2 [QSA]

RewriteRule ^m([0-9]+)-(.*)-protype([0-9]+).html$ member.php?uid=$1&protype=$3 [QSA]
RewriteRule ^m([0-9]+)-(.*).html$ member.php?uid=$1 [QSA]

RewriteRule ^board.html$ board.php [QSA]
RewriteRule ^b([0-9]+)-(.*).html$ board.php?msg=$1 [QSA]

RewriteRule ^u([0-9]+)-(.*)-cat([0-9]+).html$ showgallery.php?ppuser=$1&cat=$3 [QSA]
RewriteRule ^u([0-9]+)-(.*)-cat([0-9]+)-page([0-9]+).html$ showgallery.php?ppuser=$1&cat=$3&page=$4 [QSA]
RewriteRule ^u([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?ppuser=$1&page=$3 [QSA]
RewriteRule ^u([0-9]+)-(.*).html$ showgallery.php?ppuser=$1 [QSA]

RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&page=$3 [QSA]
RewriteRule ^s([0-9]+)-(.*).html$ showmembers.php?cat=$1 [QSA]

RewriteCond %{QUERY_STRING} !redirected=
RewriteCond %{QUERY_STRING} language=
RewriteRule ^(.*)$ vbenterprisetranslator_front_controller.php?redirected=$1&vbet_outside=true [L,QSA]

#RewriteCond %{QUERY_STRING} !vbet_outside=true
#RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

Forum htaccess:
#RULES for SEO translation links without any SEO engine (on raw vBulletin links)
#If you are using vB 'Mod Rewrite Friendly URLs' then put those rules JUST BEFORE vB rules
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ index.php?language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/gallery/(.*)?$ /gallery/$2?language=$1 [L,QSA]

kamilkurczak
26-05-11, 22:16
you need to put rules for photopost BEFORE old rules of vBET.
Like this one:


Forum htaccess:
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/gallery/(.*)?$ /gallery/$2?language=$1 [L,QSA]
#RULES for SEO translation links without any SEO engine (on raw vBulletin links)
#If you are using vB 'Mod Rewrite Friendly URLs' then put those rules JUST BEFORE vB rules
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ index.php?language=$1 [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1 [QSA]

Schmike
27-05-11, 03:25
done. but still having the same error.

vBET
29-05-11, 15:24
I came here to check why it takes so long...

You still didn't send here your forum URL, so I cannot check the issue.

I wrote you that there are separate instructions for forums which are in subdirectory and for forums which do not use subdirectory in URL. You are using hints for forums which do not have subdirectory in URL, but in first post you gave path '/testvb/forums/gallery/' so I think that you have subdirectory in URL and used wrong hints...

Please note that you can always buy integration service (http://www.vbenterprisetranslator.com/integration-service.php) for $30. Our forum support is free, still I see that you have lot of issues to fallow given hints, so maybe buying integration service will be better solution for you.

Anyway if you want us to help you by forum - please write URL to page where we can see the issue.

Schmike
30-05-11, 05:08
I was a little busy over the last few days. I will run through the steps again to make sure I did not miss anything out.

kamilkurczak
30-05-11, 18:05
ok , so We are waiting for your confirmation

Schmike
01-06-11, 15:03
Steps taken:
replace SET_HERE_FULL_FORUM_DIRECTORY_PATH with my forum path
replace all [L] in my htaccess to [QSA]
added both rules for htaccess
added rule at the top of forums htaccess and replace ADDITIONAL_DIRECTORY to gallery which is my subfolder

I still encounter the same problem. In case I missed out previously, this is my testvb test site setup.

vBET
02-06-11, 22:07
I feel like we are just turning around all the time... You do not respond to most important issues.

You still didn't send here your forum URL, so I cannot check the issue.

I wrote you that there are separate instructions for forums which are in subdirectory and for forums which do not use subdirectory in URL. You are using hints for forums which do not have subdirectory in URL, but in first post you gave path '/testvb/forums/gallery/' so I think that you have subdirectory in URL and used wrong hints...

I wrote you this and again you didn't send URL, even when you know I'm not able to verify did you took appropriate steps without checking forum structure. This is critical. I will not able to help you until you provide required information.

I also put your attention to differences in integration according to your forum structure (this is what I need to check). But you ignored it again. I got no answer at all. You just repeated which steps you took - I know this already from your previous messages. The thing is: ARE THOSE CORRECT STEPS? And we are not able to tell you this until you provide the most important information about your forum structure.

Once again:

I wrote you that there are separate instructions for forums which are in subdirectory and for forums which do not use subdirectory in URL. You are using hints for forums which do not have subdirectory in URL, but in first post you gave path '/testvb/forums/gallery/' so I think that you have subdirectory in URL and used wrong hints...

And once again: http://www.vbenterprisetranslator.com/forum/vbet4-integration-other-plugins/486-vbet-integration-instructions.html#post1785 here you have described 2 different cases - and I thing you used wrong one, but I cannot tell until you provide asked information. Please send forum URL where we can see the issue. Also just please PM access details to FTP and Admin CP - we will check you have it set as it should be.

Schmike
04-06-11, 03:58
Have pm you the necessary details.

vBET
05-06-11, 10:25
Just was there - you do not have turned on SEO links... Integration instructions are assuming that SEO links are turned on... That was the issue. That is why you do not have it translated, because your links to not go to the rules.

We can modify the rules - there is no problem. First - in final forum (here is test) you want it with SEO links turned on or not? If yes then please first turn SEO links on in your forum, and check how it is working. If not - let us know we will give you modified rules.

Schmike
05-06-11, 10:30
Please give me the modified rules instead. Thanks.

vBET
05-06-11, 10:41
I will prepare those and send it to you. At this moment - as I see at this moment you do not have .htaccess file in gallery folder... Instead you have HTACCESS file. Please make sure that it is OK for your server.

vBET
05-06-11, 10:49
For .htaccess in forums directory:
1. You still have there broken rule with /ADDITIONAL_DIRECTORY/, which you told us was changed... We are not be able to help you, when you provide false information.
2. When SEO links are not used, then you do not need any vBET rules there at all - you can simply remove it.

For .htaccess in gallery directory:
1. YOU DO NOT HAVE IT. You have wrong name instead - please correct HTACCESS to .htaccess
2. No rule changes should be necessary - as I see there is assumption that other rule already changed SEO link to language= link so it should work fine.

Please tell did it help and what are the issues if not.

Schmike
05-06-11, 11:18
I've removed that rule in forums .htaccess and renamed gallery htaccess to .htaccess.

url:
http://www.predatoryfishkeepers.com/testvb/forums/vbet_flag-/testvb/forums/gallery/index?language=zh-CN

error:
Not Found

The requested URL /testvb/forums/vbet_flag-/testvb/forums/gallery/index was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

vBET
06-06-11, 00:55
The URL you have is broken - still something is not right and it looks like requests are not coming by our front controller. I'm going there to check.

vBET
06-06-11, 01:03
I've removed that rule in forums .htaccess and renamed gallery htaccess to .htaccess.

No you didn't. You was precisely told to change name from HTACCESS to .htaccess. Exactly:

correct HTACCESS to .htaccess
Instead you changed to .HTACCESS and again gave false information about steps which you took, by writing that it is changed to .htaccess

Please fallow directions precisely and do not provide false information anymore - this is the reason why it took so long, because you are doing one thing and writing that you did something else.

Please tell did it help?

Schmike
06-06-11, 03:05
No you didn't. You was precisely told to change name from HTACCESS to .htaccess. Exactly:

Instead you changed to .HTACCESS and again gave false information about steps which you took, by writing that it is changed to .htaccess

Please fallow directions precisely and do not provide false information anymore - this is the reason why it took so long, because you are doing one thing and writing that you did something else.

Please tell did it help?

I seriously have no idea about it being case sensitive.

It is only working for my main page now. Other pages are not translated when I click on the translation but I manage to fix it with http://www.vbenterprisetranslator.com/forum/vbet4-bug-reporting/1416-not-able-change-language-forum-thread-2.html.

Seems working fine now. Thanks and sorry for the trouble.

vBET
06-06-11, 17:11
Great that it is working now :) If you will have any other issues, then please just write :)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations delivered by vBET Translator 4.10.1