Member
Member
benjancewicz   2010-01-11, 19:46
#1

I built this site a while ago, and the client did something to break it, but I'm not sure what.

This is the error: '[function.include]: failed to open stream: no suitable wrapper could be found in /homepages/15/d206436658/htdocs/wsb4535514701/zenphoto/themes/default/album.php on line 1'

What would cause that?

Member
Member
sbillard   2010-01-11, 20:22
#2

Take a look at that line in the actual theme on installed on the site. The error is saying that some kind of include failed, but the standard "default" theme has no such include on line 1 of album.php. Perhaps that file has been compromised

Member
Member
benjancewicz   2010-01-12, 02:09
#3

I put an include in the theme when I built it, and the include is indeed there.

Here's an example of a broken page: http://www.bmengini.com/zenphoto/index.php?album=Dance/

And yet the include really is there: http://www.bmengini.com/includes/top.php

Member
Member
sbillard   2010-01-12, 03:16
#4

When I visit that site I get the following error:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /homepages/15/d206436658/htdocs/wsb4535514701/zenphoto/themes/default/album.php on line 60

This is an indication that the filename you have used in the include is a WEB based URL, not a filesytem one. Probably what has happened is that the site providers have tightened up their security a bit and are now disallowing URL file access (see the message) whereas before they did allow it.

Member
Member
benjancewicz   2010-01-17, 03:10
#5

So essentially, I have to target it using a filesystem path, correct?

Is there any way to determine how many levels I have to go up, or do I just punch in ../ until I get it?

Administrator
Administrator
acrylian   2010-01-17, 10:55
#6

Yes, you probably have to try that. I guess ../includes/(...) might work if Zenphoto is within /zenphoto.

Member
Member
benjancewicz   2010-01-18, 00:24
#7

That did it. Thank you both! I appreciate it!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.