[SOLVED] URL file-access is disabled
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks
Author Message
4rk4n705
Newbie


Joined: Jun 06, 2008
Posts: 17

PostPost subject: [SOLVED] URL file-access is disabled
Posted: Tue Jul 08, 2008 7:12 pm
Reply with quote

Hello. I have a problem related to thumbnails in DF Multimedia. Although I put the right path to the image for the thumbnail, this doesn't show up.

Here is the error:

Quote:
modules/DF_Multimedia/layout.php

* Warning line 80: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration
* Warning line 80: getimagesize(http://i.ytimg.com/vi/kE_C1FXRo20/default.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found
* Warning line 80: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration
* Warning line 80: getimagesize(http://i.ytimg.com/vi/lF4QGqYtHG8/default.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found

modules/DF_Multimedia/functions.php

* Warning line 353: Division by zero

Is it a server problem? What is the quickest solution?


4rk4n705's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DragonFly 9.2.1


Last edited by 4rk4n705 on Thu Feb 19, 2009 8:29 pm; edited 1 time in total
Back to top
View user's profile
alyssa
Diamond Supporter


Joined: Nov 15, 2004
Posts: 778

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Wed Jul 09, 2008 4:33 am
Reply with quote

This might be a fix to check out:

dragonflycms.org/Proje...d=268.html


alyssa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
[ Linux / Apache 2.2.8 / MySQL 5.0.45 / PHP 5.2.6 / CPG 8.2b - 9.2.1.7]
Back to top
View user's profile
4rk4n705
Newbie


Joined: Jun 06, 2008
Posts: 17

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Sun Feb 15, 2009 9:58 pm
Reply with quote

No, it is not. The server guys told me is something with the code, they have blocked certain functions with url open. Any solution?

They told me I should use curl library...


4rk4n705's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DragonFly 9.2.1
Back to top
View user's profile
sasha2002
Newbie


Joined: Nov 24, 2008
Posts: 38
Location: Moldova

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Sun Feb 15, 2009 11:36 pm
Reply with quote

You can take a screenshot of php.ini where is "disable_functions " or post it here. maybe i can help you.

sasha2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0/5.0.51a/5.2.6/10.0.02(up from 9.2.1)
Back to top
View user's profile Visit poster's website
4rk4n705
Newbie


Joined: Jun 06, 2008
Posts: 17

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Mon Feb 16, 2009 7:15 pm
Reply with quote

Disabled functions: dl, exec, system, popen, passthru, proc_open, shell_exec, pcntl_exec, syslog, openlog

4rk4n705's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DragonFly 9.2.1
Back to top
View user's profile
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Wed Feb 18, 2009 6:45 pm
Reply with quote

Please be patient i've just worked out to get around allow_url_fopen and will implement it soon!
_________________
There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first Razz

DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Wed Feb 18, 2009 7:09 pm
Reply with quote

It's added to CVS if you have PHP 5 you could check the CVS files or download the attached patch.

NOTE: this patch completely disables the useless "security" setting and reopens the "hole". It has a build in detection so that it mimics the new 'allow_url_include' setting and therefore keeps some security intact.
So, you still can't use include, include_once, require and require_once (which was the real security leak).


dragonflycms.org/cvs/h...msinit.inc
dragonflycms.org/cvs/h...rapper.php


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
4rk4n705
Newbie


Joined: Jun 06, 2008
Posts: 17

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Wed Feb 18, 2009 7:41 pm
Reply with quote

Cool, sorry for the lame question, but... how should I apply this patch?

4rk4n705's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DragonFly 9.2.1
Back to top
View user's profile
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Wed Feb 18, 2009 8:42 pm
Reply with quote

1. there's a new file: upload it to /includes/classes/

2. Use a patch program to let it patch your cmsinit.inc

if you don't have a patch program (kompare on linux kde, winmerge, command line, etc. etc.) you can do it manually. Open the patch file with your favourite text editor and it should be straight forward (all lines starting with '+' should be added between abod/below mentioned text)

Green colored text in following example: dragonflycms.org/cvs/h....163-9.162


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Wed Feb 18, 2009 9:26 pm
Reply with quote

Second note: because it is very public by now (i posted the issue back in 2006) i've now reported it as bug bugs.php.net/bug.php?id=47444

DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
4rk4n705
Newbie


Joined: Jun 06, 2008
Posts: 17

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Thu Feb 19, 2009 4:52 am
Reply with quote

Thanks, it seems a neat solution... but, I did what you said, editing the cmsinit.inc file, and now I get this message:

Fatal error: Call to undefined function: stream_wrapper_unregister() in /home/public_html/website/includes/cmsinit.inc on line 179

What do I did wrong?


4rk4n705's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DragonFly 9.2.1
Back to top
View user's profile
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Thu Feb 19, 2009 4:55 pm
Reply with quote

Nothing, you are using PHP 4 and not PHP 5 as i said.
You can't use the "hack"


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
4rk4n705
Newbie


Joined: Jun 06, 2008
Posts: 17

PostPost subject: Re: DF Multimedia - Thumbnails not showing
Posted: Thu Feb 19, 2009 8:26 pm
Reply with quote

Genius!!! I changed the version to php 5 and the thumbnails now are showing, the hack worked like a charm! Thanks again, finally somebody found the solution.

Best.


4rk4n705's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
DragonFly 9.2.1
Back to top
View user's profile
DJ Maze
Developer


Joined: Apr 19, 2004
Posts: 5668
Location: http://tinyurl.com/5z8dmv

PostPost subject: Re: [SOLVED] URL file-access is disabled
Posted: Sat Feb 21, 2009 9:54 pm
Reply with quote

Great that it works!

I've modified the topic subject and made it a sticky since my solution affects all Dragonfly modules and functions.


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 12 / 2.2.15 / 5.1.47 / 5.3.3 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.7782 seconds with 16 DB Queries in 0.1718 seconds
Memory Usage: 3 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy