Forum Replies Created
-
AuthorPosts
-
Brittany Vacchiano
ParticipantCopied production DB where connections is working well and imported it into our dev DB (changing the hostname to match the dev environment’s hostname)
In the entries below you’ll notice there’s a
.jpg.jpgfile extension in both instances. Even though that’s the case (thought it was weird, but could be because the image got uploaded twice), the links listed in bothoptionsentries return proper images.I’ve included two entries for each DB.
DEV – NOT WORKING
Entry 1
a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:28:"Missing-Equine-Photo.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:28:"Missing-Equine-Photo.jpg.jpg";s:4:"path";s:107:"/app/wwwroot/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:3:"url";s:127:"http://thewire-dev.subdomainommitted.org/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:5:"width";i:200;s:6:"height";i:248;s:4:"size";s:24:"width="200" height="248"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}Entry 2
a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:20:"KEARNEY-John.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:20:"KEARNEY-John.jpg.jpg";s:4:"path";s:92:"/app/wwwroot/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:3:"url";s:112:"http://thewire-dev.subdomainommitted.org/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:5:"width";i:200;s:6:"height";i:250;s:4:"size";s:24:"width="200" height="250"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}PROD – WORKING
Entry 1
a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:28:"Missing-Equine-Photo.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:28:"Missing-Equine-Photo.jpg.jpg";s:4:"path";s:107:"/app/wwwroot/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:3:"url";s:127:"http://thewire.subdomainommitted.org/thewire/wp-content/uploads/connections-images/police-equine-teddy/Missing-Equine-Photo.jpg.jpg";s:5:"width";i:200;s:6:"height";i:248;s:4:"size";s:24:"width="200" height="248"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}Entry 2
a:3:{s:5:"entry";a:1:{s:4:"type";s:10:"individual";}s:5:"group";a:1:{s:6:"family";a:0:{}}s:5:"image";a:4:{s:6:"linked";b:1;s:7:"display";b:1;s:4:"name";a:1:{s:8:"original";s:20:"KEARNEY-John.jpg.jpg";}s:4:"meta";a:1:{s:8:"original";a:8:{s:4:"name";s:20:"KEARNEY-John.jpg.jpg";s:4:"path";s:92:"/app/wwwroot/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:3:"url";s:112:"http://thewire.subdomainommitted.org/thewire/wp-content/uploads/connections-images/john-kearney/KEARNEY-John.jpg.jpg";s:5:"width";i:200;s:6:"height";i:250;s:4:"size";s:24:"width="200" height="250"";s:4:"mime";s:10:"image/jpeg";s:4:"type";i:2;}}}}Brittany Vacchiano
ParticipantThis reply has been marked as private.Brittany Vacchiano
ParticipantHey Steven –
Unfortunately my website is an internal website for a company that I work for, not available on the public web. For that reason, I cannot give remote access to my website.
I did some hardcore digging into your plugin last night.
It appears as though the
CN_IMAGE_PATHcontains the correct hostname & theCN_IMAGE_BASE_URLis also correct.$this->getImageNameOriginal()(like in line 3978 of class.entry-data.php: https://github.com/Connections-Business-Directory/Connections/blob/develop/includes/entry/class.entry-data.php#L3978) does not return a string for each of mycnEntrys. This is because eachcnEntryno longer has an['image']attribute and image meta (this, of course, happened after changing my hostname). Therefore, when thegetImageNameOrginal()function is called, an empty string is returned. Thus, when thegetOriginalImagePath($type)(inclass.entry-data.php) function is called, an empty string is returned because no files can be found at the path for the entry.Is there a function that I can use to automatically associate each entry with an image in the /connections-images/ directory so I do not have to re-upload (maybe a filter or hook)? My /connections-images/ folder is still in tact.
Thanks
Brittany Vacchiano
ParticipantNo errors are displayed on the Manage page in Connections or on the Connections Dashboard
Brittany Vacchiano
ParticipantThey do not display on the site’s frontend.
When I edit a preexisting entry that had an image previously, I noticed that both the image is not displaying and the “Publish” setting is not persisted (IE — no radio button is checked on the Edit Entry page under “Publish”).
Checked the server and the connections-images folder still exists in the uploads folder, with rwxrwxrwx(777) rights. Images still remain in each subdirectory (with folder names as slugs relating to connections entries).
Brittany Vacchiano
ParticipantOkay – sounds good. I’ll keep an eye out during the next few plugin updates in case the
manage.phpfile gets updated.Thanks!
Brittany Vacchiano
ParticipantHi Steven –
I have implemented the filter you mentioned above & verified that the cn_search_terms filter is returning just the first entry in the
termsarray.However, when
$atts['terms'] = $this->parse_search_terms(line 2319 of class.retrieve.php) is ran, an empty array is being returned and, thus, returned no search results.After much trial and error, I figured out that you need to return
array($terms[0])instead of$terms[0]in the filter function you listed above. That seemed to do the trick!You can mark this as resolved!
-
AuthorPosts
