Hello. The homepage for staging9 is broken http://staging9.drupal.org/ and gives the following error message

Fatal error: Cannot redeclare drupalorg_handbook_nodeapi() (previously declared in /var/www/staging9/htdocs/sites/staging9.drupal.org/modules/patched/drupalorg/drupalorg_handbook/drupalorg_handbook.module:19) in /var/www/staging9/htdocs/sites/staging9.drupal.org/modules/patched/drupalorg/drupalorg_handbook/drupalorg_handbook.module on line 55

request your assistance to fix it.

thx.

yash

CommentFileSizeAuthor
#2 staging9_2.PNG70.67 KByasheshb
staging9_1.PNG70.65 KByasheshb

Comments

yasheshb’s picture

Status: Active » Fixed

the issue is fixed. i tried it right now and was not able to reproduce the error.

yasheshb’s picture

Status: Fixed » Active
StatusFileSize
new70.67 KB

it's resurfaced again on http://staging9.drupal.org/admin/build/modules.
reopening the issue.

Fatal error: Cannot redeclare drupalorg_handbook_nodeapi() (previously declared in /var/www/staging9/htdocs/sites/staging9.drupal.org/modules/patched/drupalorg/drupalorg_handbook/drupalorg_handbook.module:19) in /var/www/staging9/htdocs/sites/staging9.drupal.org/modules/patched/drupalorg/drupalorg_handbook/drupalorg_handbook.module on line 55
rfay’s picture

Sorry - we thought this machine was able to be left this way. This problem surfaced with @csevb10's search fix. #665976: drupalorg_search throwing fatal error in the modules sandbox.

We were unable to resolve this - it doesn't seem to be an actual result of his code, bur rather something like an APC problem.

We need csevb10 to revert the code out of his staging9 sandbox, I guess. Too bad - it may be worth continuing to chase this.

I have a copy of the db and the code so we should be able to recreate this if necessary.

rfay’s picture

I disabled searchquery and drupalorg_search as a short-term fix.

Amazon’s picture

Yasheshb if your team is blocked let us know.

rfay’s picture

I turned off APC (for all staging sites) and this problem is not reproducible with APC off.

rfay’s picture

This is probably the most common of these:

Fatal error: Cannot redeclare searchquery_nodeapi() (previously declared in /var/www/staging9/htdocs/sites/staging9.drupal.org/modules/patched/drupalorg/blocks_and_nodes/searchquery.module:7) in /var/www/staging9/htdocs/sites/staging9.drupal.org/modules/patched/drupalorg/blocks_and_nodes/searchquery.module on line 17
Amazon’s picture

This might be useful. http://drupal.org/node/72099 Fatal error: Cannot redeclare blah_function() in ../modules/blah.module

The SVN checkouts on the site are as follows:
https://svn.drupal.org/drupal/drupal.org/redesign/ goes into htdocs
https://svn.drupal.org/drupal/themes/sandbox/ get munged into sites/staging*.drupal.org/themes
https://svn.drupal.org/drupal/redesign_modules_sandbox/staging9/ for that site goes into sites/staging*.drupal.org/modules

rfay’s picture

Title: Staging9 homepage broken » Staging9: Fatal Error: Cannot redeclare (various)
calebgilbert’s picture

Status: Active » Fixed

So apparently (and hopefully) this has been fixed by adding apc.stat_ctime="1" to apc.ini. The need for this APC setting is documented here and here.

rfay’s picture

Just got this on staging4, same issue, visiting http://staging4.drupal.org/user:

Fatal error: Cannot redeclare dashboard_defaults() (previously declared in /var/www/staging4/htdocs/sites/all/modules/dashboard/dashboard.defaults.inc:10) in /var/www/staging4/htdocs/sites/all/modules/dashboard/dashboard.defaults.inc on line 32

Once again, line 10 is the function signature, and line 32 is the closing brace.

I disabled apc, still had the same issue.

allie’s picture

also received a: Cannot redeclare _forum_format() error
Ironically, the error is located as declared in...

/www/www/modules/forum.module:666)

(note the node number here is http://drupal.org/node/666590#comment-form is the 666 a coincidence?)

also I had just tried out the GOOFY version 6 theme

www/www/themes/goofy/template.php on line 170

Any thoughts on this?

rfay’s picture

@allie: Please provide the complete error message, and what URL you visited to get it. I assume this was on staging9, right?

allie’s picture

No, this was on my site...and now my host is going to a backuped version...

allie’s picture

No, this was on my site...and now my host is going to a backuped version...

rfay’s picture

This issue queue is for Drupal.org infrastructure - your problem almost certainly has nothing to do with it. We're having a php problem with the staging sites.

Sorry - can't help. You can look at the code and see what you think is the result. You probably want to look at http://drupal.org/node/72099

rfay’s picture

Status: Fixed » Active

I re-enabled APC so we can follow this.

Please report the specifics any time you see an error like this, including at least:

* URL you hit
* complete error message

greggles’s picture

http://staging5.drupal.org/ is giving:

Fatal error: Call to undefined function drupal_get_schema() in /var/www/staging5/htdocs/sites/all/modules/views/includes/view.inc on line 1590

rfay’s picture

Thanks for reporting that greggles. I think it's a completely separate issue. I'll try to sort it out today.

Created #670938: Staging 5 broken: undefined function drupal_get_schema()

rfay’s picture

Status: Active » Fixed

We haven't been having trouble with this. Marking fixed.

Status: Fixed » Closed (fixed)

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

Component: staging.drupal.org » Other