Bug #3138

Fatal error running symfony tasks

Added by David Juhasz over 12 years ago. Updated almost 9 years ago.

Status:VerifiedStart date:
Priority:HighDue date:
Assignee:Jesús García Crespo% Done:

100%

Category:InternalsEstimated time:24.00 hours
Target version:Release 1.4.0
Google Code Legacy ID:atom-1188 Tested version:
Sponsored:No Requires documentation:

Description

Encountered the following error when running "php symfony propel:data-dump"
and "php symfony search:populate QubitSearch":

Fatal error: Class QubitActor contains 4 abstract methods and must
therefore be declared abstract or implement the remaining methods
(ArrayAccess::offsetExists, ArrayAccess::offsetGet, ArrayAccess::offsetSet,
...) in /<path_to_atom>/lib/model/QubitActor.php on line 27

or...

PHP Fatal error: Undefined class constant 'ID' in /<path_to_atom/lib/QubitResourceRoute.class.php on line 26

A workaround is:

$ rm -rf cache/*
$ php symfony cc
$ <run your task again>

Read our following wiki page for technical details:
https://www.qubit-toolkit.org/wiki/Autoload

[g] Legacy categories: Migration task, Search / browse

History

#1 Updated by David Juhasz about 12 years ago

  • Target version changed from Release 1.1 to Release 1.0.9

[g] Labels added: Milestone-Release-1.0.9
[g] Labels removed: Milestone-Release-1.1

#2 Updated by Jesús García Crespo about 12 years ago

David/Jack, try to empty cache directory completely. Then, build-model and try again.

It happened here but I always thought it was some issue related to my own environment, PHP cfg...

#3 Updated by Anonymous about 12 years ago

  • Status changed from New to In progress

#4 Updated by Anonymous about 12 years ago

  • Status changed from In progress to Verified

Fixed in commit 6379

#5 Updated by Jesús García Crespo about 12 years ago

  • Status changed from Verified to In progress

Trying to rebuild search index,

$ sudo php symfony search:populate QubitSearch
QubitSearch >> Populating index...
QubitSearch >> Index erased.

Fatal error: Class QubitActor contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods
(ArrayAccess::offsetExists, ArrayAccess::offsetGet, ArrayAccess::offsetSet, ...) in .../qubit/lib/model/QubitActor.php on line 27

This was working two days ago, so I think this is due to r6703 or r6704?

#6 Updated by David Juhasz about 12 years ago

  • Priority changed from Critical to High

[g] Labels added: Priority-High
[g] Labels removed: Priority-Critical

#7 Updated by Jesús García Crespo about 12 years ago

One more... :-(

$ php symfony propel:data-dump ./dump.yml

propel dumping data to "/Users/jesus/Sites/qubit/data/fixtures/./dump.yml"

Fatal error: Class QubitActor contains 4 abstract methods and must therefore be declared abstract or implement
the remaining methods (ArrayAccess::offsetExists, ArrayAccess::offsetGet, ArrayAccess::offsetSet, ...) in
/Users/jesus/Sites/qubit/lib/model/QubitActor.php on line 27

#8 Updated by Anonymous almost 12 years ago

Encountered a similar error while performing the last step of an upgrade from
ICA-AtoM 1.0.8 to 1.0.9:

propel load data from "C:/xampp/htdocs/collection/data/fixtures"

QubitTaxonomy:
QubitTaxonomy_28:
created_at: '2010-03-26 20:52:55'
updated_at: '2010-03-26 20:52:55'
source_culture: en
id:
Fatal error: Class QubitTaxonomy contains 4 abstract methods and must therefore be
declared abstract or implement the remaining methods (ArrayAccess::offsetExists,
ArrayAccess::offsetGet, ArrayAccess::offsetSet, ...) in
C:\xampp\htdocs\collection\lib\model\QubitTaxonomy.php on line 21

#9 Updated by Jesús García Crespo almost 12 years ago

@efthimios: please, read my response in ica-atom-users group: http://groups.google.com/group/ica-atom-
users/browse_thread/thread/4a65d936ba1345c

#10 Updated by David Juhasz almost 12 years ago

This error can be bypassed by using the command:

php symfony cc && php symfony cc

when the error occurs. Another option is to delete the
"cache/project_autoload.cache" file and restart the task.

#11 Updated by David Juhasz almost 12 years ago

  • Target version changed from Release 1.0.9 to Release 1.1

Bump to milestone Release-1.1

[g] Labels added: Milestone-Release-1.1
[g] Labels removed: Milestone-Release-1.0.9

#12 Updated by Anonymous almost 12 years ago

  • Priority set to Medium

[g] Labels added: Priority-Medium

#13 Updated by David Juhasz almost 12 years ago

  • Priority changed from Medium to High

[g] Labels added: Priority-High
[g] Labels removed: Priority-Medium

#14 Updated by Evelyn McLellan over 11 years ago

  • Target version changed from Release 1.1 to Release 1.2

[g] Labels added: Milestone-Release-1.2
[g] Labels removed: Milestone-Release-1.1

#15 Updated by David Juhasz almost 11 years ago

  • Assignee deleted (Anonymous)
  • Priority changed from High to Medium

[g] Labels added: Priority-Medium
[g] Labels removed: Priority-High

#16 Updated by David Juhasz almost 11 years ago

  • Priority set to Low

[g] Labels added: Priority-Low

#17 Updated by David Juhasz over 10 years ago

  • Target version set to Release 1.3

Roll over to Release 1.3

[g] Labels added: Milestone-Release-1.3

#18 Updated by Jesús García Crespo over 10 years ago

The problem started happening when we upgraded Symfony to 1.3,
http://qubit-toolkit.org/wiki/index.php?title=Autoload#Commits

#19 Updated by Jesús García Crespo over 9 years ago

  • Target version set to Release 2.1.0
  • Sponsored set to No

#20 Updated by Jesús García Crespo over 9 years ago

  • Status changed from In progress to New

#21 Updated by Jesús García Crespo over 9 years ago

  • Target version deleted (Release 2.1.0)
  • Estimated time set to 24.00

#22 Updated by Jesús García Crespo over 9 years ago

  • Description updated (diff)
  • Category set to Internals
  • Assignee set to Jesús García Crespo
  • Priority changed from Low to High

#23 Updated by Jesús García Crespo over 9 years ago

  • Description updated (diff)

#24 Updated by Jesús García Crespo about 9 years ago

  • Target version set to Release 1.4.0

#25 Updated by Jesús García Crespo about 9 years ago

  • Status changed from New to QA/Review
  • % Done changed from 0 to 100

Applied in changeset atom|commit:abae44a859cc30f06157a64eae277f68c841aea9.

#26 Updated by Jesús García Crespo almost 9 years ago

Applied in changeset atom|commit:108bede1323c3963f2f1774c6afa6ed3dfe2532f.

#27 Updated by Dan Gillean almost 9 years ago

  • Status changed from QA/Review to Verified

It's been a month now that I have been running my AtoM instance without using the workaround, and I haven't encountered any problems. Marking verified. Nice fix Jesus!

Also available in: Atom PDF