warning: parse_ini_file(modules/aggregator/aggregator.info) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/dealer/public_html/cms/includes/module.inc on line 195.
warning: parse_ini_file(modules/block/block.info) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/dealer/public_html/cms/includes/module.inc on line 195.
warning: parse_ini_file(modules/blog/blog.info) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/dealer/public_html/cms/includes/module.inc on line 195.
warning: parse_ini_file(modules/blogapi/blogapi.info) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/dealer/public_html/cms/includes/module.inc on line 195.
warning: parse_ini_file(modules/book/book.info) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/dealer/public_html/cms/includes/module.inc on line 195.
warning: parse_ini_file(modules/color/color.info) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/dealer/public_html/cms/includes/module.inc on line 195.
warning: parse_ini_file(modules/comment/comment.info) [function.parse-ini-file]: failed to open stream: No such file or directory in /home/dealer/public_html/cms/includes/module.inc on line 195.

Brand new installation and it looks like module.inc is looking for several (way more than listed here) .info files. I couldn;t find another topic on this and have been searching for a while. I am trying to grep for .info files, but no luck so far

Comments

Bleu’s picture

so it is another problem

Bleu’s picture

Apparently parse_ini_file does not like relative paths. Starting on line 194 of module.inc you will find the following code;

if (file_exists($filename)) {
    /* $info = parse_ini_file($filename); old, missing prepend operator */
        $info = parse_ini_file(('./' . $filename)); // note prepended dot-slash
	
    if (isset($info['dependencies'])) {
      $info['dependencies'] = explode(" ", $info['dependencies']);
    }
    else {
      $info['dependencies'] = NULL;
    }
  }
  return $info;

I commented out line 195 (the offender) and added a new line 195 that includes a prepended ./
That solved the problem and all seems to be peachy.

Manamarak’s picture

I had the exact same problem, and his works like a charm, but I can't help wondering if there isn't a better way than messing about in the source code. Maybe there is something wrong with my Apache 2.2 or PHP instalation? Any ideas?

WiseTeck’s picture

Yes,

make sure php include_path variable has "." (current directory) in it:

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

or you can set it from .htaccess

 php_value include_path ".:/usr/local/lib/php"

-------------------
Matt Jackson
PerfumesPedia - Perfumes Reviews, Fragrance Tips

jpsalter’s picture

The above suggestion worked for me.

This seems to be dependent upon server configuration - but, I don't know if it is Apache or PHP. Here are my settings:

MySQL database 4.1.13
PHP 5.1.4
Unicode library PHP Mbstring Extension
Web server Apache/2.0.53 (Unix) PHP/5.1.4

jadowd’s picture

probably a better way is to look at what directories are being included in the php.ini file for includes. I added the root directory to my include_path variable in php.ini and my errors went bye bye...

Manamarak’s picture

Right, I have figured it out, it definitely is due to server configuration.

So, what I did was install apache triad. It combines all three elements, Apache, PHP and MySQL.

Solved all the problems.