0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()

2,493 views
Skip to first unread message

Rudolf

unread,
Jun 22, 2018, 10:07:23 AM6/22/18
to Joomla! General Development
Hi there,

I installed Joomla 4 alpha 3 and when I tried to install my extension (which works fine on Joomla 3.8.8) I got this error:
0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()

I read https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4 but found no clues.  Anyone solved this problem yet?
Thanks on advance :-)

Michael Babker

unread,
Jun 22, 2018, 10:29:41 AM6/22/18
to joomla-de...@googlegroups.com
The query() method has been deprecated for a while and is removed in 4.0, see https://api.joomla.org/cms-3/classes/JDatabaseDriver.html#method_query for reference.

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send email to joomla-de...@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.

Rudolf

unread,
Jun 22, 2018, 11:51:16 AM6/22/18
to Joomla! General Development
Thanks Michael,
But where can I find what to use instead? The document offers no alternatives.

On Friday, June 22, 2018 at 4:29:41 PM UTC+2, Michael Babker wrote:
The query() method has been deprecated for a while and is removed in 4.0, see https://api.joomla.org/cms-3/classes/JDatabaseDriver.html#method_query for reference.

On Fri, Jun 22, 2018 at 9:07 AM Rudolf wrote:
Hi there,

I installed Joomla 4 alpha 3 and when I tried to install my extension (which works fine on Joomla 3.8.8) I got this error:
0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()

I read https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4 but found no clues.  Anyone solved this problem yet?
Thanks on advance :-)

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.

To post to this group, send email to

Hannes Papenberg

unread,
Jun 22, 2018, 1:13:06 PM6/22/18
to joomla-de...@googlegroups.com
That would be execute().
> joomla-dev-gene...@googlegroups.com <javascript:>.
> To post to this group, send email to
> Visit this group at
> https://groups.google.com/group/joomla-dev-general
> <https://groups.google.com/group/joomla-dev-general>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Joomla! General Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to joomla-dev-gene...@googlegroups.com
> <mailto:joomla-dev-gene...@googlegroups.com>.
> To post to this group, send email to joomla-de...@googlegroups.com
> <mailto:joomla-de...@googlegroups.com>.

Rudolf

unread,
Jun 26, 2018, 3:13:16 PM6/26/18
to Joomla! General Development
Thanks Hannes, will try it out.

On Friday, June 22, 2018 at 7:13:06 PM UTC+2, Hannes Papenberg wrote:
That would be execute().

Rudolf

unread,
Jun 28, 2018, 12:34:45 PM6/28/18
to Joomla! General Development
Perfect, that did the trick. Thanks again Hannes!
Reply all
Reply to author
Forward
0 new messages