Support ⇒ Modules & Blocks ⇒ [SOLVED] URL file-access is disabled ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexModules & Blocks

[SOLVED] URL file-access is disabled Reply to topic


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:

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?

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


This might be a fix to check out:

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

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.3.4.1]


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...

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
DragonFly 9.2.1


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

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)


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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
DragonFly 9.2.1


Please be patient i've just worked out to get around allow_url_fopen and will implement it soon!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


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
Attachment: http_wrapper.tar.gz
Description http patch
Filename http_wrapper.tar.gz
Filesize 2.87 KiB
Downloaded 3 Time(s)
You are not allowed to view/download this attachment

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
DragonFly 9.2.1


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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


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?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
DragonFly 9.2.1


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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


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.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
DragonFly 9.2.1


Great that it works!

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

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial

All times are UTC


Jump to: