Forum Replies Created
-
AuthorPosts
-
Paul Chitson
ParticipantHi Steven
I am running this site on IIS and there is caching enabled there. However I don’t have any additional caching enabled on the WP side. I will do some more experiments on the dev system to see if I can work out what is going on. It looks like from your trails it should work.
In the meantime I have successfully pulled all the data out via a query and imported them back in so they are correct on the live system now.
Again thanks for your support on this.
Paul Chitson
ParticipantHi Steven
Thank you for your continued help on this.
I’ve restored the Functions.php file back to its original state. Installed Code Snippets and imported the XML file. All good so far. On testing I am still not getting the result I am looking for, which is shame.
If I update the Line_1 from the Connections Manager screen. The change is saved into the wp_connections table in “addresses”. However the wp_connections_address table remains unaltered. Thus when looking at the persons contact details it isn’t showing the update because its now looking at the wp_connections_address table and not wp_connections. I hope that makes sense.
While you are working on this I am also trying to create a SQL query to extract all the user information so I can do a re-import. That is providing it’s own challenges but it will give us a second option.
Thanks again.
Paul Chitson
ParticipantHi Steven,
Have you had any time to look into this one for me?
Thanks
Paul Chitson
ParticipantHi Steven
Sorry to report neither of those options worked :(
The first gave the following error –
Fatal error: Cannot redeclare cn_disable_output_cache() (previously declared in <PATH>\<THEME>\functions.php:196) in <PATH>\<THEME>\functions.php on line 204
The second still didn’t update the database.
If there was a bit of PHP that could be run to update the cache this would be the ultimate result.
Thanks for your help on this.
Paul Chitson
ParticipantAh, I have found an issue. I’ve added the PHP code as per that thread but only the line that relates to the address. Now when I amend a contact the changes aren’t being saved? If I edit the wp_connections_address table directly the change shows so it looks like when I am hitting update from the Connection Manager the changes aren’t being submitted.
Paul Chitson
ParticipantI need to use the search button better, I found this topic that seems to give me a work around. http://connections-pro.com/support/topic/database-updates-not-showing/
If you get around to doing a extension to flush the caches that would be fantastic.
Paul Chitson
ParticipantThanks for the info Steven. Yes that did fix the problem.
HNY
Paul Chitson
ParticipantSteven
No rush but if you do then drop me a line. In the meantime the “limit” is doing the job and stopping the DB from hanging up.
Paul Chitson
ParticipantSteven
Thanks for that, yes that does “fix” the issue which is great. I guess there is no demand but if you did a nice simple template like “Card” as a premium one then I would be very interested.
Paul Chitson
ParticipantHere is the template code
<?php /** * Template HTML Output. * * @package Connections * @subpackage Template HTML Output * @copyright Copyright (c) 2013, Steven A. Zahm * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since unknown */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; ?> <div class="cn-entry" style="-moz-border-radius:4px; background-color:#FFFFFF; border:1px solid #E3E3E3; color: #000000; margin:8px 0px; padding:6px; position: relative;"> <div style="width:49%; float:left"> <?php $entry->getImage(); ?> <div style="clear:both;"></div> <div style="margin-bottom: 10px;"> <span style="font-size:larger;font-variant: small-caps"><strong><?php echo $entry->getNameBlock(); ?></strong></span> <?php $entry->getTitleBlock(); ?> <?php $entry->getOrgUnitBlock(); ?> <?php $entry->getContactNameBlock(); ?> <?php $entry->getNotesBlock(); ?> </div> <?php $entry->getAddressBlock(); ?> </div> <div align="right"> <?php $entry->getFamilyMemberBlock(); ?> <?php $entry->getPhoneNumberBlock(); ?> <?php $entry->getEmailAddressBlock(); ?> <?php $entry->getImBlock(); ?> <?php $entry->getSocialMediaBlock(); ?> <?php $entry->getLinkBlock(); ?> <?php $entry->getDateBlock(); ?> </div> <div style="clear:both"></div> <div class="cn-meta" align="left" style="margin-top: 6px"> </span> <span><?php $entry->vcard(); ?></span> </div> </div>-
This reply was modified 12 years, 8 months ago by
Paul Chitson.
-
This reply was modified 12 years, 8 months ago by
-
AuthorPosts
