WebFaction
Community site: login faq

i just moved over a website to webfaction. i tried logging into the back end content cms and i get this error:

Warning: include_once(): Failed opening 'events/include.php' for inclusion (include_path='.:/usr/local/share/pear54') in /home/USER/webapps/general/content/include.php on line 33

The line 33 in the include.php has this

 for ($x=0;$x<sizeof($subsystemlist);$x++)
{   if ($synchit)
LINE 33>    {   include_once($subsystemlist[$x][1]."/include.php");
    }
}

anyone have a clue on how to fix this?

I notice that there is a dir /usr/local/share/pear54 on WF

asked 17 Jan '14, 07:26

baba
47724
accept rate: 0%

edited 17 Jan '14, 07:29

Can you print what the statement include_once($subsystemlist[$x][1]."/include.php"); evaluates to for all of the items in the loop? (In other words, echo the strings so that we can see all of the specific filepaths it's trying to include.)

(17 Jan '14, 09:31) ryans ♦♦

Hi Ryans . thanks for your response. Sorry to be a bit of a noob on this, but how would i get the "echo outputs " from this PHP job? is there some code i can add to the php files?

(17 Jan '14, 22:53) baba

You'll definitely want to learn how to use PHP if you plan to run a site that runs on PHP. Information on the echo function is available in the PHP documentation.

The code could look like this:

for ($x=0;$x<sizeof($subsystemlist);$x++)
{   if ($synchit)
    {
        echo "<br/>";
        echo "{$subsystemlist[$x][1]}"."/include.php";
        echo "<br/>";
        include_once($subsystemlist[$x][1]."/include.php");
    }
}
(18 Jan '14, 00:05) ryans ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×1

question asked: 17 Jan '14, 07:26

question was seen: 4,076 times

last updated: 18 Jan '14, 00:06

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM