Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Forbidden 403 errors / images broken (http://www.mysidiaadoptables.com/forum/showthread.php?t=3827)

Ashe 09-17-2012 01:12 AM

yah ty for your help! I don't know if my host knows more about it but I hope he does. This script was perfect for what I wanted to do. Would suck if it ends up I cant use it :(

Hall of Famer 09-17-2012 01:16 AM

Well I dont think it will be as bad as you won't be able to use it, but you won't benefit from certain features such as bbcode if your php.ini settings ain't working out properly.

Ashe 09-17-2012 11:22 AM

http://www.surmunity.com/showthread....ighlight=fopen

My host showed me this. It seems they disabled allow_url_fopen for everyone. My host is suggesting I instal cURL to bypass it but I have no idea how >.<

Hall of Famer 09-17-2012 11:27 AM

Wow this is so unexpected. I personally dont really know what Curl is, not sure how much I can help you. Can your host provide scripting support for customers? If not, I will see if I can get an answer from a few PHP programmer communities that I've registered on.

Ashe 09-17-2012 11:53 AM

Nah there's no support for it. >.<

Hall of Famer 09-17-2012 03:27 PM

I see, I will try to help you by asking on the php coders community. Hopefully someone will come out with a solution to your problem. If it turns out that curl functions are better alternative than allow_url_fopen, we may be switching to use curl functions for the next releases.

Ashe 09-17-2012 04:19 PM

Alright, thanks a bunch. Let me know if you guys learn anything more on the matter ^^

Hall of Famer 09-17-2012 08:57 PM

Well I am not sure if this will work, but let's give it a try. Open your siggy.php file and find the following lines:

PHP Code:

header ($contentType); 
$status readfile($image); 
if(
$status == "" or $status == "false" or $status == "FALSE"){ 
    
// Reading the file failed, so show an error...      
    
header ("text/plain"); 
    die(
"Readfile appears to be disabled on your host."); 


Replace by:

PHP Code:

header ($contentType); 
$ch curl_init();
curl_setopt($chCURLOPT_URL$image);
curl_setopt($chCURLOPT_HEADER0);
curl_exec($ch);
curl_close($ch); 

Incase you get an error message, please report to me so I can troubleshoot it further. I am not quite familiar with curl functions myself, so I really cannot guarantee that it will definitely work for this time being.

Ashe 09-18-2012 05:23 PM

Yup! That solved it! The images are now showing up ^^ Here's a page where I placed the html code for testing: http://www.adragonsden.com/adopt/click.html Thanks so much :D I was beginning to make a myadopt page all depressed lool

But I still have a problem with members logging in (forbidden 403 error)...The first time they make the account they can login but once they logout they can't get back in xD I'm not sure if its a browser issue or not. Out of 3/5 people or so can't log back in.

if you want you can test it out with one of my members' accounts. This is her old account and that doesn't work but she made a new one that works now so I'm not sure what's going on o: When you try to login, it does'nt lead you to the page (wrong login) instead it leads to a 403.

user: bbshadowcat pass: chobits413

Hall of Famer 09-18-2012 08:29 PM

Glad it works for you Ashe, this was my first attempt using curl functions so I wasnt quite sure at the very beginning. XD

Its kinda weird how the login script is malfuntioning for you at times. I used the account you provided and made two login attempts. Both failed, but I was able to log in with an account I registered. I will see what I can do about this, it never happened to anyone before. I was wondering though, did you happen to notice if there was anything in common with those who could not log in? Username, IP address, or anything?


All times are GMT -5. The time now is 03:44 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.