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: 0.8.9, DOCUMENT_ROOT, htaccess, LOCAL_FILE_BASE_DIRECTORY, timthumb
- This topic has 7 replies, 2 voices, and was last updated 8 years, 1 month ago by
Steven Zahm.
-
AuthorPosts
-
06/01/2014 at 9:29 pm #292697
cheryl forziati
ParticipantHI Steve,
We just did a manual move of our wordpress site. And now the images are not worrking on the directory — they seem to be loading on the backend but we cannot get them to load on the front end. Here is an example page…. http://69.195.124.219/~pmgphysi/for-patients/find-a-provider/
I have tried creating a new entry with a new image… and that doesn’t work either.
here it is.. working fine on our staging site… http://clients.ca-design.net/PMG/for-patients/find-a-provider/
Ideas?
06/02/2014 at 9:35 am #292711Steven Zahm
Keymaster@ cheryl
In short, the issue should correct itself after you site goes live with a domain name. But if you’d like to fix it, here’s how:
The document root can not be determined automatically. So you have to manually set the DOCUMENT_ROOT here’s how:
Add the following to the
timthumb-config.php
file found here:../wp-content/plugins/connections/includes/libraries/timthumb/
This is what you need to add, make sure to change the doc root accordingly:
define ( 'LOCAL_FILE_BASE_DIRECTORY', '/my/doc/root/' );
What
/my/doc/root
will be will depend entirely on the server setup. If you go to the the Connections : Dashboard admin page and look at the the System widget; there will be a constant namedCN_PATH
. The doc root should be the beginning portion of that path. What I can tell you is that from the wp-content and on will NOT be part of the doc root.Hope that helps.
06/04/2014 at 5:47 pm #293017cheryl forziati
ParticipantThat worked GREAT!!! thank you….
now I have a new problem! LOL
I get this message on one of the pages at the bottom
Warning: Division by zero in /home2/pmgphysi/public_html/wp-content/plugins/connections/includes/template/class.template-parts.php on line 1381only on this page
http://69.195.124.219/~pmgphysi/for-patients/find-a-provider/06/04/2014 at 6:06 pm #293019Steven Zahm
Keymaster@ cheryl
What is the exact shortcode you are using?
06/04/2014 at 8:38 pm #293024cheryl forziati
ParticipantI just moved this from one server to another… This is the shortcode
[connections category='4,10,1,12,5,2,3,6,7' enable_category_by_root_parent=true show_alphaindex='true' page_limit=0 enable_search=false name_format='%first% %middle% %last%, %suffix%' str_bio_head=""]
It seemed to appear when I fixed the image issue…. I tried putting in the previous timthumb-config.php to see if that effected it… but it did not.
Same set up here — but no code error….
http://clients.ca-design.net/PMG/for-patients/find-a-provider/I’m thinking I might need to replace a file???
Thanks,
-C06/05/2014 at 9:49 am #293070Steven Zahm
Keymaster@ cheryl
The
page_limit=0
option is causing the divide by zero error. Remove it and it’ll go away. The likely reason for the error being shown on one server and not the other is the way PHP is configured to report errors.06/05/2014 at 10:07 am #293072cheryl forziati
ParticipantThanks! That did it… feeling stupid! But thank you for the help!!!!!
06/05/2014 at 11:07 am #293075Steven Zahm
Keymaster@ cheryl
Great to hear that fixed the issue. I added an extra check to ensure a zero value can never cause this error again.
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.