• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[PHP] Classifieds script error

Custom Title Activated
Loyal Member
Joined
Apr 16, 2007
Messages
1,009
Reaction score
11
Well I was trying to setup a classifieds script to test and well, I have absolutley no idea what went wrong, I don't have a clue tbh.

Code:
[B]Warning[/B]:  require_once() [[URL="http://canon.p4web.biz/function.require-once"]function.require-once[/URL]]: open_basedir restriction in effect. File(/path/to/declassifieds/lib/func_common.php) is not within the allowed path(s): (/www/p4web.biz/c/a/n/canon/htdocs/) in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Warning[/B]:  require_once(/path/to/declassifieds/lib/func_common.php) [[URL="http://canon.p4web.biz/function.require-once"]function.require-once[/URL]]: failed to open stream: Operation not permitted in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Fatal error[/B]:  require_once() [[URL="http://canon.p4web.biz/function.require"]function.require[/URL]]: Failed opening required '/path/to/declassifieds/lib/func_common.php' (include_path='.:/usr/share/php') in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]
 
Newbie Spellweaver
Joined
Nov 21, 2008
Messages
37
Reaction score
0
Well I was trying to setup a classifieds script to test and well, I have absolutley no idea what went wrong, I don't have a clue tbh.

Code:
[B]Warning[/B]:  require_once() [[URL="http://forum.ragezone.com/redirector.php?url=http://canon.p4web.biz%2Ffunction.require-once"]function.require-once[/URL]]: open_basedir restriction in effect. File(/path/to/declassifieds/lib/func_common.php) is not within the allowed path(s): (/www/p4web.biz/c/a/n/canon/htdocs/) in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Warning[/B]:  require_once(/path/to/declassifieds/lib/func_common.php) [[URL="http://forum.ragezone.com/redirector.php?url=http://canon.p4web.biz%2Ffunction.require-once"]function.require-once[/URL]]: failed to open stream: Operation not permitted in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]

[B]Fatal error[/B]:  require_once() [[URL="http://forum.ragezone.com/redirector.php?url=http://canon.p4web.biz%2Ffunction.require"]function.require[/URL]]: Failed opening required '/path/to/declassifieds/lib/func_common.php' (include_path='.:/usr/share/php') in [B]/www/p4web.biz/c/a/n/canon/htdocs/index.php[/B] on line [B]17[/B]


Looks to me like you haven't installed it correctly, or had it in the correct directory.
 
Newbie Spellweaver
Joined
Aug 17, 2007
Messages
45
Reaction score
0
Might be a good idea to at least post the lines stated in the error ;)
 
Joined
Jun 8, 2007
Messages
1,985
Reaction score
490
Simple.. You didn't instal it correctly, but it's easy to fix.

Open the page with errors into your favorite text document.

Scroll down to line 17 (where the error was encountered), and notice that you'll see something like:
PHP:
include_once('/path/to/declassifieds/lib....');

Now, in your file management system, or the place where you see all the files to your site, there should be a folder called declassifieds. Well you uploaded it, so you should know where it is.

Back in the file with the error (on line 17), replace everything that says /path/to/declassifieds/lib/ with Or whatever the path is.

I think you should understand the error now ;)
 
Back
Top