Hi,
I am trying to apply Socrates 3.02 to my existing blog at http://www.cottagesmallholder.com
That brings its own set of challenges!
I am using a theme switcher, so the Socrates theme is not yet visible to visitors, only to Admins.
The home page under my current theme is configured to display the newest post in full, followed by the four most recent post excerpts with thumbnails. This will be reconfigured in Socrates. Right now, Socrates is attempting to display the five most recent posts in full.
One article is causing problems - the third one from the top. It appears correctly as a single post and in Category lists etc in Socrates. But it breaks the Home page in Socrates for some reason. I did reload the image using WP Media upload function and deleted the original image. But the path below to the image appears valid.
This is the relevant section of native.php with my simple debug "echo" lines
This is the error that appears on the Home page, complete with the debug output:95 // no cache files - let's finally resize it
96 echo "File path $file_path <br />";
97 echo "Width $width <br />";
98 echo "Height $height <br />";
99 echo "Crop $crop <br />";
100 echo "output ends here <br />";
101 $new_img_path = image_resize( $file_path, $width, $height, $crop );
102 $new_img_size = getimagesize( $new_img_path );
103 $new_img = str_replace( basename( $image_src[0] ), basename( $new_img_path ), $image_src[0] );
strangely, I attempted to echo $new_img_path before line 102 but the error threw before it performed the echo.Recipe for Fiona’s fabulous watercress soup
File path /home/cottages/public_html/wp-content/images/recipes/soup/picture_of_watercress_soup_recipe.jpg
Width 160
Height 160
Crop 1
output ends here
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/cottages/public_html/wp-content/themes/socrates/functions/native.php on line 102
Happy to PM Admin access credentials if that helps.
Thanks,
Fiona



Reply With Quote