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.
- This topic has 7 replies, 2 voices, and was last updated 11 years, 3 months ago by
Steven Zahm.
-
AuthorPosts
-
04/15/2015 at 2:46 pm #331375
William Bryan
GuestI recently relocated and entire intranet site to a new server and during the process, I am unable to get Bio Pictures to display. The first error is:
ERROR: The variable has not been set.
SUCCESS: Entry has been updated.
ERROR: The $img_path variable has not been set.
I have changed permissions on the uploads folder to 777, I deleted all the entries, folders, and even uninstalled the plugin (althout I don’t think I deleted all the content to perform a ‘fresh’ installation).
Could anyone provide me some insight on this? I tried all the other Topic solutions to no avail. Thank you!
04/16/2015 at 10:14 am #331426Steven Zahm
Keymaster@ William
Is the site a single site or multisite install of WordPress? If you do not know, then it is a single site install.
Go to the Connections : Dashboard admin page and scroll to the System widget.
Do the values for the following constants appear to be correct:
- CN_IMAGE_PATH
- CN_IMAGE_BASE_URL
- CN_IMAGE_RELATIVE_URL
Did you define or change any of these in your wp-config.php file?
Did you define or change the value of the WP_CONTENT_DIR or any other core WordPress path related constants in you wp-config.php file?
04/16/2015 at 4:01 pm #331467William Bryan
GuestHere’s what I got, which is all the same location.
CN_IMAGE_PATH: /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/connections-images/
CN_IMAGE_BASE_URL: /wp-content/uploads/connections-images/
CN_IMAGE_RELATIVE_URL: /wp-content/uploads/connections-images/04/16/2015 at 4:05 pm #331469William Bryan
GuestAdditionally there is no WP_CONTENT_DIR in my wp-config.php file. Would that be advised to add?
04/16/2015 at 6:41 pm #331520Steven Zahm
Keymaster**@ **
The error is that the CN_IMAGE_BASE_URL should be the full URL, not the relative URL. IE.
http://site.com/wp-content/uploads/connections-images/During the site move, did you add WP_CONTENT_URL to the wp-config.php file? If you did, this must be the FULL URL to the wp-content folder with no trailing slash.
04/16/2015 at 6:42 pm #331521Steven Zahm
Keymaster@ William
Here’s the relevant page in the Codex:
https://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder
04/27/2015 at 9:33 am #332596William Bryan
GuestThis reply has been marked as private.04/27/2015 at 10:09 am #332598Steven Zahm
Keymaster@ William
Well, you have several critical errors in your
wp-config.phpfile…The values you have set for
WP_SITEURLandWP_HOMEare unsafe and should not end with a trailing slash per the Codex. And even more importantly, I suspect those path are not correct.Although not a major issue, you then set these constants to
''right afterwards. Since you cannot redefine a constant after it is declared they do not do anything but it will throw PHP notice message in the error log (if configured). You should remove them.The path you have set for
WP_CONTENT_DIRhas a trailing slash and should not per the Codex.Also, the path that is set for
WP_CONTENT_URLis suspect. As I said previously, if this path is not correct, Connections will not be able to find the images and set the image path.Generally, unless you have some very unique WP setup, you are better off not setting the
WP_SITEURL,WP_HOME,WP_CONTENT_DIRandWP_CONTENT_URLconstants manually. You should let WP configure them.CRITICAL
Not even sure how your site is working at all because this line is all wrong:
define('ABSPATH', dirname(FILE) . '/');It should be:
define('ABSPATH', dirname(FILE) . '/');This can also definitely break the ability for Connections to find the image and properly set the image path.
-
AuthorPosts
- You must be logged in to reply to this topic.
