Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
StevenPatzComment #2
Jaypan CreditAttribution: Jaypan commentedThat 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.
Comment #3
quiethero CreditAttribution: quiethero commentedI am not at all sure of how to conduct a text search for custom code.
Comment #4
Jaypan CreditAttribution: Jaypan commentedUse an editor, and search for that text in your entire filesystem.
Comment #5
quiethero CreditAttribution: quiethero commentedIs 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?
Comment #6
Jaypan CreditAttribution: Jaypan commentedYou are trying to fix the problem, but you don't even know what's causing it. Good luck.
Comment #7
quiethero CreditAttribution: quiethero commentedThat 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
Comment #8
derhasi CreditAttribution: derhasi commentedAre 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.
Comment #9
quiethero CreditAttribution: quiethero commentedIs 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.
Comment #10
Jaypan CreditAttribution: Jaypan commentedFirst you need to find out what the problem is. As I mentioned earlier: