Re: Call to protected method?

Marc-Etienne Vargenau <[email protected]> Tue, 6 Jan 2015 18:00:46 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
On 31/12/2014 05:24, Harold Hallikainen wrote:
>
> PHP Fatal error:  Call to protected method WikiDB_backend::text_search()
> from context 'WikiDB' in
> /home/louise/public_html/phpwiki-code-9454-trunk/lib/WikiDB.php on line 337
>
> I started getting the above error on an otherwise working system recently
> when the edit tab is selected. I also just tried a fresh install of the
> most recent snapshot. The db type is file.
>
> Ideas?

Hello Harold,

Thank you for the bug report.

Unfortunately I rarely test with db type as file.

The text_search method must be public, it was protected in the
abstract class and not overwritten in the subclass for file.

It is fixed in r9456.

Best wishes for the new year!

Marc-Etienne

-- 
Marc-Etienne Vargenau [email protected]
Alcatel-Lucent International, Route de Villejust, 91620 NOZAY, FRANCE
+33 1 60 40 28 33 OnNet 2103 2833

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net