Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 921907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:56:33+00:00 2026-05-15T18:56:33+00:00

EDIT 3: Solved. See below. EDIT 2: I think Chadwick’s on the right track

  • 0

EDIT 3: Solved. See below.

EDIT 2: I think Chadwick’s on the right track with his comment. Hudson/PHPUnit is taking the localhost (the Hudson workspace) AND my local file structure and using both to run the unit tests. So it’s redeclaring everything that was already declared. Why is this happening and how can I change it?

I’ve since reported this issue on Hudson’s JIRA Server. If I get a resolution there, I’ll post here. Otherwise, any help would be appreciated since my builds are going nowhere now.

My build keeps failing and I can’t for the life of me understand why. Here’s what I get back.

phpunit:
[exec] PHP Fatal error:  Cannot redeclare generate_options() (previously declared in
<http://localhost:8080/job/Goals/ws/Goals/includes/functions/registration_fns.php>:5) in /Users
/joshsmith/Sites/Goals/Goals/includes/functions/registration_fns.php on line 32

But this particular function starts at line 5 and ends at line 32! So what in the world is going on here?

And just so you know PHPUnit works on its own outside of Hudson. Here’s my terminal output from a successful test run:

Macintosh:goals joshsmith$ phpunit alltests.class
PHPUnit 3.4.14 by Sebastian Bergmann.

.............................

Time: 14 seconds, Memory: 9.75Mb

OK (29 tests, 67 assertions)

Can anyone help me figure this craziness out?

EDIT: Under Chadwick’s suggestion, I tried renaming the function in case it were trying to redeclare a function internal to Hudson. This didn’t work, and is clearly some other obscure issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:56:34+00:00Added an answer on May 15, 2026 at 6:56 pm

    This has been solved. It was an issue where I had hardcoded the paths in a single initializer file. As a result, they were being redeclared by PHPUnit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[EDIT: Problem solved. Please see my answer below.] In my app I call the
EDIT: This problem has been solved. See below. Hey all. I'm building an iPhone
Edit: I have solved this by myself. See my answer below I have set
edit: this is now solved, see my answer below The situation: User clicks on
Answer solved in edit below I had this piece of code Dictionary<Merchant, int> remaingCards
UPDATE: Solved. Thanks BusyMark! EDIT: This is revised based on the answer below from
SOLVED: See my solution below! using aspx with C# code behind. I have the
SOLVED see Edit 2 Hello, I've been writing a Perl program to handle automatic
((Answer selected - see Edit 5 below.)) I need to write a simple pink-noise
EDIT: Issue solved, answered it below. Lame error. Blah So I upgraded to Django

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.