Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.6.4
- This topic has 13 replies, 3 voices, and was last updated 9 years, 4 months ago by
Steven Zahm.
-
AuthorPosts
-
04/17/2017 at 2:45 pm #420221
Brittany Vacchiano
ParticipantHi Steven –
I’ve changed the Hostname of my website. After this change has occurred, I’ve noticed that none of my pictures are displaying for any entries in the connections Manage page. Any ideas on how to fix this without having to re-upload all pictures (I have over 1500 entries in Connections, so re-uploading is not my #1 option)
04/17/2017 at 3:12 pm #420222Steven Zahm
Keymaster@ Brittany
Image paths are not dependent on the hostname. Sounds like there is another issue…
Do the images display on the site’s frontend? How about when you edit a preexisting entry?
Are there any error messages or other notices?
04/17/2017 at 3:23 pm #420224Brittany 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).
04/17/2017 at 3:27 pm #420226Brittany Vacchiano
ParticipantNo errors are displayed on the Manage page in Connections or on the Connections Dashboard
04/17/2017 at 5:49 pm #420231Steven Zahm
Keymaster@ Brittany
Please navigate to the Connections : Tools admin page and click the System Info tab. Scroll to the bottom and generate a remote viewing link. Please reply back with that link and I’ll take a look. Be sure to make the reply private before submitting.
04/18/2017 at 8:49 am #420316Brittany 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
04/18/2017 at 9:56 am #420331Steven Zahm
Keymaster@ Brittany
re: This is because each cnEntry no longer has an [‘image’] attribute and image meta (this, of course, happened after changing my hostname).
Changing the hostname would not cause the image attribute to be blank. That value is retrieved from the entry data which is stored in the database…
Which makes me wonder…
When you changed hostnames, did you manipulate the database in any way? Such as running a manual query to do a find and replace of the hostnames across all tables?
Another question…
In your
wp-config.phpfile, are you manually setting either the UPLOADS or WP_CONTENT_DIR? Infact are you manually setting any of the WordPress constants? if you are what to? This is important because WordPress has some very specific rules on how they are to be set. I’ve come across many instances where these were wrong which would cause the images not to display.04/18/2017 at 11:37 am #420336Brittany Vacchiano
ParticipantThis reply has been marked as private.04/18/2017 at 12:45 pm #420343Steven Zahm
Keymaster@ Brittany
Log into the database, locate the {wpdb-prefix}_connections table. Locate a record which has a known image. What is the exact contents of the
optionscolumn for that entry?04/18/2017 at 12:47 pm #420344Steven Zahm
Keymaster@ Brittany
Oh, sorry, wanted to add…
Do the same with the source database, before the hostname change. Let me know both.
-
AuthorPosts
- You must be logged in to reply to this topic.
