sacredrider
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permissions Best Practices – Shared Hostingleefuller, i ham having the same issues as you. Could you please provide me with your solution?
Looking more into it, it seems it isnt getting the site location. So the permission failure is on the root blog.
The URL when i select Appearance -> “Simple Responsive slider”
https://dev.blog.com/site/wp-admin/themes.php?page=simple-responsive-sliderWhen i click settings:
https://dev.blog.com/wp-admin/themes.php?page=simple-responsive-slider&tab=simpleresponsiveslider_settingsIt is missing out /site/.
So when i manually add /site/ into the URL, it goes to the right tab with no permission error. It is indeed something missing when the tab is generated.
The errors i am getting are:
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/sacred/public_html/example.com/wp-includes/media.php on line 937
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/sacred/public_html/example.com/wp-includes/class-wp-image-editor-gd.php on line 162
Warning: Cannot modify header information – headers already sent by (output started at /home/sacred/public_html/example.com/wp-includes/media.php:937) in /home/sacred/public_html/example.com/wp-includes/pluggable.php on line 876
Another potential is :
$info = wp_get_attachment_image_src($attachment->ID, $size); $info2 = wp_get_attachment_image_src($attachment->ID, large); echo $href . $info2[0] . $hrefend . $beforeUrl . $info[0] . $afterUrl . $aend;
This works, but then i get errors when uploading the image. I cant get pas this bit.
So far i have made changes to template_tags.php:
$href = '<a href="'; $hrefend = '">'; $aend = '</a>'; echo $href . $info[0] . $hrefend . $beforeUrl . $info[0] . $afterUrl . $aend;
The issue now is selecting a thumbnail for initial and medium or large for the enlarge.
Is there a way i can specify from here if i want a thumbnail or large instead of the one in the actual page being the reference?
What i am thinking is something like:
$info[0]->large and $info[0]->thumbnail