• I’m having a very frustrating time adding images to my posts. At the moment, I am only able to add images via the media gallery.

    However, I want the ability to add a different url to my image that directs the user to a website upon click instead of expanding the topic. I also cannot add an image using an img tag in the html editor, or using the image from url option. The image does displays in visual display, but when I click update/post I’m redirected to my posting list in the admin. Using wordpress’ default theme doesn’t solve this, and I have no plugins installed.

    I also have a lot of errors that display at the top of my admin page in the media section of the admin: Warning: in_array() expects parameter 2 to be array, null given in /home/creation/public_html/wp-includes/query.php on line 2399 The image issue was the same when I initially installed wordpress with 3.1.1.

    After a lot of web research on my own I have determined that this is a hosting issue, in which the database isn’t allowing me certain write permissions. I am able to change the CHMOD permissions on the folder’s themselves, but the issue is with permissions on the server itself. I found this suggestion online that said to add this block to my .htaccess file:

    <IfModule mod_security.c>
    <Files post.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    The only change this made regarding adding an img tag or image url to my post was redirecting me to my post list in the admin. Before adding this change, the page would just go blank with an error on the top of my screen when I clicked save/update post.

    I am hosting with iNet-Solutions and when I contacted them regarding this issue, they responded by telling me that they will not allow changing the permissions on the server itself, but I can change the permissions with my individual database and suggested to override the permissions via a php.ini file, which I have no idea how to go about writing.

    There has gotta be a way I can get images in my posts either with an img tag in my html editor, or by adding an image url. I also would like the ability to add a secondary larger image to my expanded post(if this is possible) so I can avoid using popups for images showcasing new project designs. If anyone on this forum knows of a php.ini file that will override my permissions to allow images in my post that would be great!

    ~Frustrated
    Developer

Viewing 6 replies - 31 through 36 (of 36 total)
  • Thread Starter swalker1974

    (@swalker1974)

    My host only allows me one database, but I can change that if I really want to. Well, I’ll do the fresh install over the weekend and let you know what happens.

    Do I need to do anything with the .htaccess file? Or just leave it be?

    ~Shannon

    I would start totally fresh. No htaccess until you change from default permalinks, so delete it.

    Thread Starter swalker1974

    (@swalker1974)

    Okay, sounds good. I’ll let ya know how it goes once I’m done!

    ~Shannon

    Thread Starter swalker1974

    (@swalker1974)

    I have done a fresh install of wordpress on a new database. I installed the hotfix plugin with no problems, then I tried publish a new post with an image url and I get this message:

    Not Acceptable

    An appropriate representation of the requested resource /wp-admin/post.php could not be found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Should I upload the .htaccess file and see if that works?

    ~Shannon

    Read this, https://activeblogging.com/info/406-error-wordpress/.

    Turning off mod sec is not a good idea and the post above has several other suggestions. Call you host and let them know that mod_sec is keeping you from posting. A httaccess to just wp-admin. Change words/urls in the actual post.

    Can you post a normal post with no image? Make up a test post and you can delete it after you try it.

    Thread Starter swalker1974

    (@swalker1974)

    Yeah, I can post standard text posts. I did change my permalinks and when trying to publish an new post with an image after that, either via url or an uploaded one from the gallery; I’m immediately re-directed to my home page with a Not Found

    But after reading that article from the link in your reply, I tried one of his suggestions by removing the https:// from the <img> tag and also removing it from the image media upload when view it in the html editor. The post saves with images with no problems.

    Even tough this is an extra step, it only takes me two seconds to remove the https:// and domain name and just leave the image folder path. Thanks for all your help on this, and I’ll make sure I bookmark that article link you sent.

    ~Shannon

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘Image urls wont display in post!’ is closed to new replies.