#283 ✓resolved
dleffler

searchController::spider() crashes page

Reported by dleffler | August 6th, 2011 @ 12:45 AM | in Release Candidate 2 (closed)

When the site is spider'd (content migration, etc...) it'll crash because $available_controllers contains both controllers and models. I've partially fixed this by 1) fixing a newly introduced typo in the method, and 2) adding an isSearchable() method to expRecord, but still can't get through it completely without crashing.

Comments and changes to this ticket

  • expNinja

    expNinja August 6th, 2011 @ 01:21 AM

    • State changed from “open” to “resolved”

    (from [f7e3410ee80be734e96a6976fc4a5e0adcfc4ae2]) spider searches $available_controllers which now also contains models stored in the modules folders. Crashed because there was no isSearchable() method, so I added it to expRecord. Also the Twitter model was extended to use expRecord (not sure if this will cause other problems, if so, just add an isSearchable() method). Also a disconnect in textController. Is says it is Searchable, but set to return false when getting spider content (made an assumption that search operated like in 1.0). I commented out the addContentToSearch() method, so it works per expRecord. If this is not desired, uncomment it out and change isSearchable() to return false. Also corrected a recent typo in the exponent_modules_list() function. [#283 state:resolved] https://github.com/exponentcms/exponent-cms/commit/f7e3410ee80be734...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Tags

Pages