I opened my site the other day and it loads and returns a blank screen with the following error:

"Could not set the include path"

I had not made any changes.

Can you help me define my path?

Comments

StevenPatz’s picture

Category: bug » support
Priority: Critical » Normal
Jaypan’s picture

That sounds like the result of some custom code, not Drupal code. Have you got a custom module or theme in your project? Start looking in there.

You may also want to do a text search of your file system for that text.

quiethero’s picture

I am not at all sure of how to conduct a text search for custom code.

Jaypan’s picture

Use an editor, and search for that text in your entire filesystem.

quiethero’s picture

Is there any way I could simply set the path in settings.php? e.g. Could not set the include path would be the following:

When I tried to do what was suggested after the first Warning:

Warning: include(/home/mywebroot/public_html/sites/all/modules) [function.include]: failed to open stream: No such file or directory in include() (line 578 of /home/mywebroot/public_html/sites/default/settings.php).
Warning: include() [function.include]: Failed opening '/home/mywebroot/public_html/sites/all/modules' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/mywebrootphp') in include() (line 578 of /home/mywebroot/public_html/sites/default/settings.php).

include_path=".:/usr/lib/php:/usr/local/lib/php:/home/mywebroot/php"

I put this at the foot of my settings.php and got rid of the "Could not set the include path" error. I think a step in the right direction. I got the following:

Parse error: syntax error, unexpected '=' in /home/mywebroot/public_html/sites/default/settings.php on line 570

But I have no idea how to adjust the syntax because when I remove the '=' I get the following error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/mywebroot/public_html/sites/default/settings.php on line 570

Any suggestions?

Jaypan’s picture

You are trying to fix the problem, but you don't even know what's causing it. Good luck.

quiethero’s picture

That may be true but initially, that is exactly why I was asking you to do. Helping me find the problem was always my priority but I have gotten zero points of reference to even begin looking. That is why I opened this issue. By the way, I know what the problem is; no set path. It should be rather simple to set the path but it's not. I have gone to the following websites and have been reading for days:

http://www.geeksengine.com/article/php-include-path.html

But cannot seem to get it to stick in .htaccess or in php.ini

derhasi’s picture

Are you using civicrm? It looks like the error may lead from that: http://svn.civicrm.org/civicrm/trunk/templates/CRM/common/civicrm.settin... . In that case some configuration on civicrm might solve the problem.

quiethero’s picture

Is there any way you can help me to set the path. I have been all over the Civicrm settings file and can't seem to get it to work.

Jaypan’s picture

First you need to find out what the problem is. As I mentioned earlier:

Use an editor, and search for that text in your entire filesystem.

Version: 7.22 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.