Fix Database Sync on Wordpress DB
Budget: $8 – $15 USD
1. Intro to Project and Error
We have this website LPC.org.za. At the moment we have 2 posts types. Practitioner Listings and Law Firms.
These 2 post types have a relationship where some Practitioner Listings link with Law Firms and vice versa. In other words it makes it easier for people find the Law Firm that a Practitioner belongs to.
Right now there are numerous Law Firms that are linking to the wrong Practitioner.
There is an external database that syncs on a daily basis to the website.
I don’t have access to that Database unfortunately.
That external database is was populates the fiels and content for the Practitioner Listings and Law Firms
The sync runs on a CRON Job and the script is ran with custom built plugin.
I believe there may be an error in the Plugin’s Script or the external database causing these post types to not link properly.
I give far more details below and I also supplied login access to the site so that you can have a look.
2. Login details
I will share login details once the job has been approved.
3. Intro to the Website
We setup custom post types, taxonomies and fields using a plugin called Toolset
We have these 2 post types that are having syncing issues.
Law Firms
(link removed)
And
Practitioner Listings
(link removed)
3.1. Relationships
This posts type create listing on the frontend here
Law Firms: (link removed)
Practitioners: (link removed)
Some of the Law Firms and Practitioners have a relationship. Meaning that certain Law Firms will be linked to a Practitioner and vice versa.
An example will be seen here: (link removed)
Screenshot: (link removed)
3.2. Sync Plugin
The current plugin that controls the script to run the Script and Cron Job is called “LPC Database Sync”
I am not entirely sure how this plugin works, but it is definitely needed to get the Sync to work with the external database.
(link removed)
The sync basically pulls in database from an external database into this one "_sync": (link removed) and the database "_sync" database is an exact replica of the external database. After this the database populates the "wp_posts" and "wp_mostmeta" tables, thuse creating the posts
3.3. Cron Job
The cron job is setup in the Cpanel here under Advance - Cron Jobs: (link removed)
This is required for the Sync to happen every day, right now it's on pause.
3.4 Database where the field pull in from
The sync populates the database table that fall under lpcorg_sync found in our PHPMYADMIN here
(link removed)
4. Error
The error we're getting on this site is that some Practitioners are linking to the incorrect Law Firms and I am not able to see why that is.
Example 1
Prebashnie Moonsamie: (link removed)
Current Associated Firm: Mphela & Associates Attorneys
It's supposed to be: State Attorneys (Pretoria)
(link removed)
Example 2
Jason Dean Jennings: (link removed)
Current Associated Firm: Langenhoven Attorneys Inc
It's supposed to be: Spamer Triebel Inc.
(link removed)
That is basically the error we are getting. I believe it is either the plugin script or the lpcorg_sync database causing these issues.
please write "monkey" to confirm you are not a bot.
Please could you have a look at the site and let me know if this is something that you can fix.
Thank you.
We have this website LPC.org.za. At the moment we have 2 posts types. Practitioner Listings and Law Firms.
These 2 post types have a relationship where some Practitioner Listings link with Law Firms and vice versa. In other words it makes it easier for people find the Law Firm that a Practitioner belongs to.
Right now there are numerous Law Firms that are linking to the wrong Practitioner.
There is an external database that syncs on a daily basis to the website.
I don’t have access to that Database unfortunately.
That external database is was populates the fiels and content for the Practitioner Listings and Law Firms
The sync runs on a CRON Job and the script is ran with custom built plugin.
I believe there may be an error in the Plugin’s Script or the external database causing these post types to not link properly.
I give far more details below and I also supplied login access to the site so that you can have a look.
2. Login details
I will share login details once the job has been approved.
3. Intro to the Website
We setup custom post types, taxonomies and fields using a plugin called Toolset
We have these 2 post types that are having syncing issues.
Law Firms
(link removed)
And
Practitioner Listings
(link removed)
3.1. Relationships
This posts type create listing on the frontend here
Law Firms: (link removed)
Practitioners: (link removed)
Some of the Law Firms and Practitioners have a relationship. Meaning that certain Law Firms will be linked to a Practitioner and vice versa.
An example will be seen here: (link removed)
Screenshot: (link removed)
3.2. Sync Plugin
The current plugin that controls the script to run the Script and Cron Job is called “LPC Database Sync”
I am not entirely sure how this plugin works, but it is definitely needed to get the Sync to work with the external database.
(link removed)
The sync basically pulls in database from an external database into this one "_sync": (link removed) and the database "_sync" database is an exact replica of the external database. After this the database populates the "wp_posts" and "wp_mostmeta" tables, thuse creating the posts
3.3. Cron Job
The cron job is setup in the Cpanel here under Advance - Cron Jobs: (link removed)
This is required for the Sync to happen every day, right now it's on pause.
3.4 Database where the field pull in from
The sync populates the database table that fall under lpcorg_sync found in our PHPMYADMIN here
(link removed)
4. Error
The error we're getting on this site is that some Practitioners are linking to the incorrect Law Firms and I am not able to see why that is.
Example 1
Prebashnie Moonsamie: (link removed)
Current Associated Firm: Mphela & Associates Attorneys
It's supposed to be: State Attorneys (Pretoria)
(link removed)
Example 2
Jason Dean Jennings: (link removed)
Current Associated Firm: Langenhoven Attorneys Inc
It's supposed to be: Spamer Triebel Inc.
(link removed)
That is basically the error we are getting. I believe it is either the plugin script or the lpcorg_sync database causing these issues.
please write "monkey" to confirm you are not a bot.
Please could you have a look at the site and let me know if this is something that you can fix.
Thank you.