| Author |
Message |
4rk4n705


Joined: Jun 06, 2008 Posts: 17
|
Post subject: [SOLVED] URL file-access is disabled Posted: Tue Jul 08, 2008 7:12 pm |
|
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 |
|
 |
alyssa


Joined: Nov 15, 2004 Posts: 778
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Wed Jul 09, 2008 4:33 am |
|
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 |
|
 |
4rk4n705


Joined: Jun 06, 2008 Posts: 17
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Sun Feb 15, 2009 9:58 pm |
|
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 |
|
 |
sasha2002


Joined: Nov 24, 2008 Posts: 38 Location: Moldova
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Sun Feb 15, 2009 11:36 pm |
|
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 |
|
 |
4rk4n705


Joined: Jun 06, 2008 Posts: 17
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Mon Feb 16, 2009 7:15 pm |
|
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Wed Feb 18, 2009 6:45 pm |
|
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 
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Wed Feb 18, 2009 7:09 pm |
|
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 |
|
 |
4rk4n705


Joined: Jun 06, 2008 Posts: 17
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Wed Feb 18, 2009 7:41 pm |
|
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Wed Feb 18, 2009 8:42 pm |
|
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Wed Feb 18, 2009 9:26 pm |
|
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 |
|
 |
4rk4n705


Joined: Jun 06, 2008 Posts: 17
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Thu Feb 19, 2009 4:52 am |
|
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Thu Feb 19, 2009 4:55 pm |
|
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 |
|
 |
4rk4n705


Joined: Jun 06, 2008 Posts: 17
|
Post subject: Re: DF Multimedia - Thumbnails not showing Posted: Thu Feb 19, 2009 8:26 pm |
|
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 |
|
 |
DJ Maze


Joined: Apr 19, 2004 Posts: 5668 Location: http://tinyurl.com/5z8dmv
|
Post subject: Re: [SOLVED] URL file-access is disabled Posted: Sat Feb 21, 2009 9:54 pm |
|
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 |
|
 |