- Posts: 34
- Thank you received: 0
"Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
- Rvdzande
- Topic Author
- Offline
- Junior Member
Less
More
1 year 7 months ago - 1 year 7 months ago #14963
by Rvdzande
"Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()" was created by Rvdzande
Hello,
Today I started experimenting with your component (again, after quite some years). Everything is setup and works, besides 'front end adding' markers. As soon as I enable this and login I get:
"Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
When I log out the map shows again.
My info:
Joomla 4.2.9
ZH Google Map 12.22.12.8
Standard template (same issue with other template)
Php 8.0.28 (tested with PHP 7.4 as well)
When I enable debugging I do not see any other clues.
Site is kaart.robbyvanderzande.nl.
Could you please look into it, or tell me what I can do myself? Thanks in advance!
BTW if the project (for which I want to use the component) gets launched, I will let you know so I can donate / pay for your help
Today I started experimenting with your component (again, after quite some years). Everything is setup and works, besides 'front end adding' markers. As soon as I enable this and login I get:
"Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
When I log out the map shows again.
My info:
Joomla 4.2.9
ZH Google Map 12.22.12.8
Standard template (same issue with other template)
Php 8.0.28 (tested with PHP 7.4 as well)
When I enable debugging I do not see any other clues.
Site is kaart.robbyvanderzande.nl.
Could you please look into it, or tell me what I can do myself? Thanks in advance!
BTW if the project (for which I want to use the component) gets launched, I will let you know so I can donate / pay for your help
This message contains confidential information
Last edit: 1 year 7 months ago by Rvdzande. Reason: Added info
Please Log in or Create an account to join the conversation.
- Rvdzande
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 0
1 year 7 months ago #14964
by Rvdzande
Replied by Rvdzande on topic "Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
Well I've managed to fix this myself.
In the components/com_zhgooglemap/tmpl/map/ folder you have to make changes in 'display_map_data.php'
Search for:
$db->query();
And replace with:
$db->execute();
Should fix the issue!
In the components/com_zhgooglemap/tmpl/map/ folder you have to make changes in 'display_map_data.php'
Search for:
$db->query();
And replace with:
$db->execute();
Should fix the issue!
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
1 year 7 months ago #14965
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic "Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
Hi
I'm sorry for delay. Didn't see your message.
I really didn't check front end entering placemarks. On next week I will check it, test and will find out problem. Probably, you are right, but I need to check joomla docs and check how they do it.
Thank you for your request and solution suggestion.
I'm sorry for delay. Didn't see your message.
I really didn't check front end entering placemarks. On next week I will check it, test and will find out problem. Probably, you are right, but I need to check joomla docs and check how they do it.
Thank you for your request and solution suggestion.
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Rvdzande
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 0
1 year 7 months ago #14966
by Rvdzande
Replied by Rvdzande on topic "Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
No issue, you are in no way no obliged to provide any support. Thanks for your reply!
Please Log in or Create an account to join the conversation.
- Rvdzande
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 34
- Thank you received: 0
1 year 7 months ago #14967
by Rvdzande
Replied by Rvdzande on topic "Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
BTW I am now running into another error while placing a marker:
"0 HY000, 1364, Field 'addresstext' doesn't have a default value"
"0 HY000, 1364, Field 'addresstext' doesn't have a default value"
Please Log in or Create an account to join the conversation.
- Dima
- Offline
- Platinum Member
1 year 7 months ago #14968
by Dima
Don't forget support my developments: post review in JED , donate , help with translation
Replied by Dima on topic "Call to undefined method Joomla\Database\Mysql\MysqlDriver::query()"
Hi
Thank you for this information.
I hope on this week I will do new release and will fix both problem.
As for "default value" error - it is due to in J3 all table columns have to be not null. In J4 implemented nullable columns, but in case front end creating placemarks I didn't fill all columns, and in J4 it cause this error.
I will do all columns, which is not used in front end insert clause as nullable and all will be OK.
Thank you for this information.
I hope on this week I will do new release and will fix both problem.
As for "default value" error - it is due to in J3 all table columns have to be not null. In J4 implemented nullable columns, but in case front end creating placemarks I didn't fill all columns, and in J4 it cause this error.
I will do all columns, which is not used in front end insert clause as nullable and all will be OK.
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
Time to create page: 0.180 seconds