A small bug found and struggeling with adding content
This topic contains 3 replies, has 2 voices, and was last updated by Guust 4 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 17, 2020 at 10:30 am #530772
In short I have been trying to figure out why the listings do not save – all detail entered into the screen (admin side) is lost, even though a success message is displayed.
The website I am building have a number of members. As part of the member’s advantages, they may post their companies in the directory (which is only shown to members). The website is currently no yet live, so they can’t add their own listings yet (I have a file with all of the current member’s details, but this is not complete – some miss street addresses etc).
GD is the 3rd directory plugin I am using (first one introduced mayor bugs on the website [where some unrelated functions does not work if the user is a member – it works for non-members and administrators]; the second one is not user friendly for the search). Between the first and second plugins, I was able to modify the post_type and taxonomies to the new one, and it worked (for the custom fields, like addresses and contact details, I easily just updated it). However I did the same when I moved to GD, and these posts can’t be updated.
I did try delete a listing and using the Add New recreated it, and it worked as expected, however I don’t want to delete all, just to recreate all of them again.
I also noticed that due to incomplete addresses, I can’t add some listings. How can I make the addresses be not-required, so that I can add all of them, and when the website is live, I can hand them over to the owners who can set their correct addresses.
While trying to fix the above, by looking through the error logs, I noticed that the GD plugin is generating a bunch of errors “_gd_logged_out_post_author cookie cannot be set – headers already sent by on line ” – looking through the notice right with it, “Undefined variable: line in plugins/geodirectory/includes/helper-functions.php on line 1763” and the corresponding code, I see that $file and $line is undefined, since they were not sent to headers_sent() on line 1759.
Also in the logs, I get various “Trying to get property ‘ID’ of non-object”. These happen on line 1885 of geodirectory/includes/custom-fields/input-functions.php; line 172, 174 and 222 of geodirectory/includes/custom-fields/functions.php. I believe this is due to not having the database entry in the GD _detail table.
How can I fix this, As I am not looking forward to re-inserting all listings manually (and converting my spreadsheet to an importable one is an even bigger hassle).
February 17, 2020 at 1:27 pm #530791I also noticed that due to incomplete addresses, I can’t add some listings. How can I make the addresses be not-required, so that I can add all of them, and when the website is live, I can hand them over to the owners who can set their correct addresses.
You can just drag the map marker to the approximate location, and enter the business name in the street address field if you like.
All address fields are required.How can I fix this, As I am not looking forward to re-inserting all listings manually (and converting my spreadsheet to an importable one is an even bigger hassle).
You cannot just convert a post added using different software to a GeoDirectory Listing.
If you post your URL, WP Admin and FTP details in a private reply, then we can check your settings and see what suggestions and fixes are required.
Thanks
February 17, 2020 at 2:26 pm #530797For all of these listings, I have no real idea where they are located. For a lot of them the Open Maps can’t find the address they supplied. I am building the website for a client, and thus have no direct communication with the members.
The other plugins made use of post_meta fields, and each had their own prefix (so the details other than the post title, categories, tags, and main content were not kept when I changed). This simply meant I go through the list and re-add all of their details (which will then get the correct prefix; old prefix remains but nothing calls it so it is simply unused – perfectly fine for me).
I noticed that your plugin have a separate entry in the details table, for each listing. Why don’t your plugin simply create this entry when it is found to not exist for the current listing? This will save so much time in my current situation.February 17, 2020 at 10:57 pm #530896GD uses its own database tables for scalability. That is how a GD directory can have millions of listings for example.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket