Currently we installed counter module with version 6.x-2.16, when we tried to open reports page from its configuration settings interface it throws the below error, please see the screenshot

Fatal error: require_once(): Failed opening required 'sites/all/modules/counter/counter.report.inc' (include_path='.:/var/www/sonosite/sites/all/modules/luceneapi/lib:/usr/share/php:/usr/share/pear') in /var/www/sonosite/includes/menu.inc on line 347

We have taken a small review inside module file and found that in hook menu function the above file is included but where as this file is missing from the module folder.

Can someone please help us finding a solution for the above issue.

CommentFileSizeAuthor
counter error.png116.26 KBamarbijay

Comments

alexx90’s picture

I have a similar problem like you, i get the message :

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/counter/counter.report.inc' (include_path='.:/usr/lib/php') in /home/pa2230rd/Ch4ck_ibB3-2Ni22s_Hyi718MsgH/includes/menu.inc on line 347

please some one for help

WillGFP’s picture

Same issue here. Only happens when I try to visit the "/counter/report" page, the block seems to work just fine.

priyancatiwari’s picture

same issue.

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/counter/counter.report.inc' (include_path='.;C:\php5\pear') in D:\wamp\www\drupal\includes\menu.inc on line 347

need help.

milanchheda’s picture

Title: Fatal error: require_once(): Failed opening required 'sites/all/modules/counter/counter.report.inc' (include_path='.:/var/www/so » counter.report.inc file missing in the module

I think, one of the file is missing in the module, namely counter.report.inc

$items['counter/report'] = array(
    'title' => 'Counter Report',
    'description' => 'View Counter Report',
    'access arguments' => array('administer counter'),
    'page callback' => 'counter_report',
    'type' => MENU_NORMAL_ITEM,
    'file' => 'counter.report.inc',
  );

The above hook states that there has to be a file named counter.report.inc, but the module only has 'inc' file that is counter.settings.inc

alexx90’s picture

I created file named exactly as you said
" counter.report.inc " and inside the file that is made by Notepad+
i post the code

$items['counter/report'] = array(
    'title' => 'Counter Report',
    'description' => 'View Counter Report',
    'access arguments' => array('administer counter'),
    'page callback' => 'counter_report',
    'type' => MENU_NORMAL_ITEM,
    'file' => 'counter.report.inc',
  );

I get these message : warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'counter_report' was given in /home/pa2230rd/Ch4ck_ibB3-2Ni22s_Hyi718MsgH/includes/menu.inc on line 350

l_arbalette’s picture

Same problem here.
In the archive counter-6.x-2.16.tar.gz, this file counter.report.inc is indeed missing.
I tried to downgrade to counter-6.x-2.15 : same issue...

subhojit777’s picture

counter.report.inc is available only till 6.x-2.11 version. Don't know why they removed it in 6.x-2.16 version??

copying the file from 6.x-2.11 version may solve the problem, though not sure about that...

drupalnesia’s picture

This counter.report.inc has been deleted in D7 version. We plan to use Drupal content-type so we can produce report using Views.

amarbijay’s picture

Hi,

is there any solution for drupal 6.x?

drupalnesia’s picture

Status: Active » Fixed

Fixed also in latest Counter 6.x version

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.