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.5.14
- This topic has 8 replies, 2 voices, and was last updated 7 years, 2 months ago by
Steven Zahm.
-
AuthorPosts
-
04/14/2016 at 10:09 pm #372888
Peggy Lusk
GuestSteve,
You were able to correct this problem with my entries not displaying on the manage page; but when I updated the software the problem came back.
You corrected the issue by removing the pictures from the Manage page. Can you point me to where I would go to make this change again?
Peggy
04/15/2016 at 11:43 am #372999Steven Zahm
Keymaster@ Peggy
I logged in again and made the change to the code not to display the image.
You should follow thru with the advice I gave in this replay. If you do not, anytime I release an update, that code change I made to your site will be erased by WordPress when the updated version is installed. Downloading the original image for each entry and downsizing them will prevent the issue you are having.
Hope that helps!
04/15/2016 at 11:55 am #373000Peggy Lusk
GuestThank you, Steve…. :)
What is the maximum size for the pictures? (They had always been their current size and started causing problems earlier in the year..)
Peggy
04/15/2016 at 12:46 pm #373015Steven Zahm
Keymaster@ Peggy
re: What is the maximum size for the pictures?
Depends on your web host. The max size I recommend is not much larger than the size that you are displaying.
re: They had always been their current size and started causing problems earlier in the year.
The absolute max size depends on the memory allocated to php by your web host. Generally a web host will allow you to set it to 128MB, many will even allow up to 256MB. Now, you can actually set PHP to any amount of memory but it will be silently “hard” limited by the webhost.
Why all this talk about memory?
Processing images require memory. Opening an image for processing can take 4 or more times the memory that the image file size. So processing a typical image that comes any modern day cell phone can easily exhaust the memory allocated to PHP.
Now, this memory needed to process an image, that is also shared by WordPress and all the other plugins that are installed on your site.
This leads me in why now…
This could be due to many factors.
- The webhost made server side changes that you would not be aware of.
- WordPress, plugins and theme are all needing more and more memory.
- Sometime in the last year, just one image was uploaded that was too large and it is just that one image that is causing the problem.
It could be any or or a combination of all or more or even none of the above and the reason is another that I can not think of at the moment.
Honestly, I think it is that last one. I see you have a max upload size set to 64MB. If you or another user uploaded a multi megapixel image that could easily cause the problem.
Hope that helps!
04/22/2016 at 11:57 am #373824Peggy Lusk
GuestSteve,
My hosting provider has expanded the WP memory limit to 256. (This is the message they sent me…)
“I have raised the WP_MEMORY_LIMIT value to 256MB, the maximum we will allow on a shared hosting server. I also set the PHP memory_limit to the maximum in the custom php.ini file you have set up for your site.”
I still receive the following error message when I try to load a picture in an individual record – (Original size 11.7 KB, 119 x 122: Reduced to 10.3 KB 96 X 98) Since this is one of my smaller pictures, I’m not sure what my next step should be, in order to allow updates to take place without an isssue..
“Fatal error: Out of memory (allocated 69468160) (tried to allocate 1946535 bytes) in /home3/bpwsouthsnd/public_html/wp-includes/wp-db.php on line 1767”.
Peggy
04/22/2016 at 12:09 pm #373825Peggy Lusk
GuestSteve….
Cancel that last one. I tried using a different browser and was able to make the update without a problem. :)
Thank you so much for all of your help!!
Peggy
04/22/2016 at 12:40 pm #373826Steven Zahm
Keymaster@ Peggy
Good to hear this is resolved. It seems the fatal error “Fatal error: Out of memory (allocated 69468160) (tried to allocate 1946535 bytes) in /home3/bpwsouthsnd/public_html/wp-includes/wp-db.php on line 1767” was due to that the setting change by the host had yet taken effect because 69468160 bytes is only 69 MB, give or take. My guess that it working in the other browsers was because enough time passed for the change to take effect.
07/11/2016 at 2:15 pm #382365Peggy Lusk
GuestSteve,
I am still having a problem with this every time I update the software. After an update about a month ago, I was able to find the entries I needed by using the search function to get to them. I did another update this morning, and now not all entries can be located with the search function. I really need a method of updating an entry, and can’t see all the entries in the database.
Can you give me the instructions for removing the picture from the Manage Function so I can re-apply it after each update?
Peggy
07/11/2016 at 2:51 pm #382383Steven Zahm
Keymaster@ Peggy
re: I am still having a problem with this every time I update the software.
Back in this reply and more specifically in this reply, I did give instructions on how to fix this. It is strongly recommended that you do this otherwise you will continue to have this issue.
re: now not all entries can be located with the search function
Those specific entries are very likely the ones that need to have their images scaled down.
re: Can you give me the instructions for removing the picture from the Manage Function so I can re-apply it after each update?
Editing the code is not a solution, it is a bandaid. But, that said, here’s how:
Edit the
manage.php
file found in this folder:../wp-content/plugins/connections/admin/pages/
On line 546 you’ll find this:
$entry->getImage( array( 'image' => 'photo', 'height' => 54, 'width' => 80, 'zc' => 2, 'fallback' => array( 'type' => 'block', 'string' => __( 'No Photo Available', 'connections' ) ) ) );
Delete this line or change it to this:
//$entry->getImage( array( 'image' => 'photo', 'height' => 54, 'width' => 80, 'zc' => 2, 'fallback' => array( 'type' => 'block', 'string' => __( 'No Photo Available', 'connections' ) ) ) );
Either will do.
Save and upload the file.
That’s it, hope that helps!
-
AuthorPosts
You must be logged in to reply to this topic.