Stiofan O'Connor
Forum Replies Created
-
AuthorPosts
-
March 15, 2018 at 10:42 am in reply to: Multilocations – location switcher in menu not responding #421562
Hello,
I currently get “Error establishing a database connection”.
Please let me know when the site is working and i will take a look.Thanks,
Stiofan
Hello,
Please check now.
Thanks,
Stiofan
Hello, i am not even sure what you are trying, can you list the steps you are doing one by one so we fully understand 🙂
Thanks,
Stiofan
No, i would just put a new wp install in a sub folder like “test” or “delete-me” so you can track down the problem without having to change your site 🙂
Stiofan
Our claim is it can handel millions of listing, which it can…
I still have no idea what your are adding as locations, locations should be cities/towns, is that what you are using?Stiofan
as i said before, i don’t think what you are doing is the best way to do things, adding 2.5 million locations is not the best way to do things…
Are these locations even locations or something else?What you are trying to do probably could be done but would be bit complex, and when GDv2 is released it would all be lost and have to be redone…
Stiofan
Hi Lise,
Thanks for the info, its hard to tell what the exact resources are from their info.
Its hare to tell what is going on, most likely its server proceses as even the simpelest of queries are taking 20+seconds:8. Executed 7h 14m 58s ago for 20.569919 sec on Database –> Unknown (NOT FOUND / DELETED) Date: 2018-03-10 06:31:46 Query_time: 20.569919 Rows_examined: 0: Rows_sent 0 Lock_time: 0.000086 # Schema: guidemea_wp403 Last_errno: 0 Killed: 0 SELECT option_value FROM x1e_options WHERE option_name = ‘geodir_location_prefix’ LIMIT 1;
Is the site slow? Maybe it was just a one off server event?
Stiofan
That is something you would have to ask the theme author, i am not even sure why they are adding that…
Stiofan
There are a few things i see wrong but i don’t see a specific answer.
1. the theme is a directory theme but another company, there is bound to be conflicts.
2. recaptcha is enabeld but not showing.
3. there are https errors.
4. PHP sessions seem to be working ok but the sessions never reach the submit page for some reason..Maybe try starting with a clean fresh install on the server with only GD to see if it works and see what breaks it when activaitng things.
Stiofan
Is that one of your queries or one of ours?
Stiofan
My guess is it is some funky CSS in a plugin or theme.
Can you try disabling plugins and retesting? or maybe try switching theme and retesting.
The map works when the browser window is resized until its zoomed.Stiofan
It seems to be something in the head of the page, not sure if its theme or plugin that is adding it:
<script type="text/javascript"> var originalAddEventListener, oldWidth; if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { originalAddEventListener = EventTarget.prototype.addEventListener; oldWidth = window.innerWidth; EventTarget.prototype.addEventListener = function (eventName, eventHandler) { originalAddEventListener.call(this, eventName, function (event) { if (event.type === "resize" && oldWidth === window.innerWidth) { return; } else if (event.type === "resize" && oldWidth !== window.innerWidth) { oldWidth = window.innerWidth; } eventHandler(event); }); }; } </script>
Stiofan
Hi Kathy,
I am not exactly sure what you mean, but maybe you just want to add some ads to some price packages listings? If so that can be done with hooks.
Stiofan
Try adding ‘gd_location’ => true,
$query_args = array( 'post_type' => 'gd_place', 'gd_location' => true, );
-
AuthorPosts