Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Michael
RE: Thinking problem must be CSV file?
By the time you get to the import step, the file has already been uploaded and converted to batched JSON files. YOu should find these in this folder:
../wp-content/uploads/csv_filesAre they there?
You could also try uploaded the file renamed from
.csvto.txt.If you want, attached the CSV file you are trying to import and reply back with a WP admin and FTP login, as a private reply, and I’ll take a look.
Steven Zahm
Keymaster@ Michael
RE: I attempted to run the import a couple more times to gather more info, watched the URL as I did so, noticed that connections_csv.php works just fine until action=import, then suddenly it’s “page not found”.
A method I used… download the theme and plugins folder and load them into Sublime Text. You can search all folders at once for a text string. Search for
template_redirect. This could potentially yield a lot of results but it should be easier to scan. See if any results are triggered by a$_GET['import']or$_REQUEST['import].You could also do a search for
'import'and see if anything jumps out at you.In regards to the license, navigate to the Connections : Settings admin page and cick the Licenses tab. You can activate it there.
Hope this helps!
Steven Zahm
Keymaster@ Casper
Ok, I admit it did take me about 20 mins to figure this out … but the search results are correct.
The bio field is saved as HTML — when sending a search query to the database, the database does not ignore HTML tags and such. So, when a search is performed, class names, image file paths, link URLs will also be searched and returned as hits it they contain a match.
In the case of
mediumthis is matching a class name of medium applied to the WP images added in the bio field. So, they are returned as matches.This is not a bug or Connections limitation. Take for example this search applied to the whole site using the core WP search:
https://theaumnation.com/?s=medium
The second result is this page:
https://theaumnation.com/building-strong-relationships-teresayork/
The word medium is not found in the page text but it applied as a class name to an image so it is returned as a result.
The same this for these pages:
- https://theaumnation.com/whatsonyourmind-patriciajoy/
- https://theaumnation.com/dont-eat-anything-with-a-face-byteresayork/
- https://theaumnation.com/clutter-teresa-york/
In fact only the first search result has medium in the text body. All the other on the first page of results did not. I did not check the remaining search result pages.
I hope this explains it clearly enough that you can explain it to your client.
Hope this helps!
ps. I did search to see if HTML could be ignored, it can not. The only viable solution would be to save the bio twice. The second instance would have HTML stripped. It is this instance that would then have to be searched instead. Implementing this would be a considerable challenge at this point and not that much benefit.
Steven Zahm
Keymaster@ Darrin
Navigate to the WordPress Permalinks settings admin page. That’s it, do nothing else :)
Since I had a login, that what I did. That forces WP to flush and recreate its rewrite rules. I suspect the plugin juggling left WP in a state where the Connections rules were flushed (meaning, no longer working).
Hope this helps!
Steven Zahm
Keymaster@ Joshua
The addresses column in the connections table is a serialized array, not JSON. the array should have an
idindex whose value matches theidof the address in the addresses table.So, you should insert the address into the addresses table, get the address
idand then serialize all addresses. Ensure theidindex of each address matches theidassigned to the address in the addresses table.Perhaps using Connections to add entries and addresses is better than manually manipuliating the DB.
Here’s the bear minimum to insert a new entry with an address into Connections:
$entry = new cnEntry(); $entry->setStatus( 'approved' ); $entry->setEntryType( 'organization' ); $entry->setOrganization( '~Test' ); $entry->addresses->add( new cnAddress( array( 'line_1' => '1600 Pennsylvania Ave NW', 'city' => 'Washington', 'state' => 'DC', 'zipcode' => '20500', ) ) ); $result = $entry->save(); if ( FALSE !== $result ) { $default = get_option( 'cn_default_category' ); Connections_Directory()->term->setTermRelationships( $entry->getId(), $default, 'category' ); }Hope this helps!
Steven Zahm
Keymaster@ Paula
Clear the WP Fastest page cache after making your changes. It is also possible that the browser is simply loading the locally cached version of the page instead of fetching it a new, usually due to how caching plugins set the page headers for the browser so it knows if it should cache locally or not. So, you might also have to force refresh the browser.
If have WP Fastest cache has the option, you can also reduce the cache lifetime. And, you should not enabled caching for logged in users (if it has that option). So many times I’ve helped other WP users (not Connections related) where they could not understand why changes were not being reflect because of that option. Likely why caching plugins which have such an option have it off by default.
Hope this helps!
Steven Zahm
Keymaster@ Richard
RE: Would you mind just confirming that the bio text will be used automatically to create the description if no text is entered it defaults to using the google generated wording.
Yes, the bio text, if available, will be used to create a page description for Google. Like everything else, Google may chose or not chose to use it and may decide to automatically create a better one for you.
Sorry, for the non-answer answer.
RE: Do you know of a way that the visibility of each entry data can be switched on or off except for just basic detail.
Sorry, you did ask this yesterday! I forgot by the time I was finished writing my other answer :/
All the repeatable fields such as address/phone/email have a visibility setting, set it to private. The only logged in users can view that info.
Hope that helps!
Steven Zahm
Keymaster@ Brian
With the FTP login I was able to download the site files and run a free text query thru all the files. The offending plugin is the Work Horse plugin. Deactivating it and updating the permalinks resolves the issue!
Steven Zahm
Keymaster@ Bruce
Go ahead and use the Contact link at the very bottom of the page.
Steven Zahm
Keymaster@ Brian
RE: So is there anything I can do to fix the pagination issue?
Sorry I was not more clear!!!
Whatever code/plugin (something) you used to add the Channels, Noodle and Haha post types I suspect is causing the issue. My suggestion is to remove/undo whatever you did to add those and update the Permalinks.
RE: is there any way to change the slug?
Sorry, no, there is not. Create a new entry with the name of the slug you want. Delete the old one. Then rename to new entry to the name you want. The slug will remain as it was when it was created.
RE: LinkedIn
Not sure what to say… I really have no control or influence on how it LinkedIn works. To my knowledge I can only choose to accept or reject connection requests. I do not get to choose who I allow to make such requests.
hope this helps!
-
AuthorPosts
