• 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 15 replies - 16 through 30 (of 36 total)
  • Thread Starter swalker1974

    (@swalker1974)

    I have already tried un-installing and re-installing the hotfix plugin with no avail.

    ~Shannon

    Thread Starter swalker1974

    (@swalker1974)

    Should I try setting a different CHMOD setting on the wp-admin folder, and or the wp-includes folder? As of now, both folders are set to 755.

    ~Shannon

    Change your .htaccess to this.
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    755 is the correct setting.

    Thread Starter swalker1974

    (@swalker1974)

    I have added the .htaccess file to my public_html root folder. When clicking “publish” and a post with an image url, I am immediately re-directed to the post list page in my admin. When I view the new post, the image is removed.

    Any other thoughts? ??

    ~Shannon

    So this is the same thing that was happening before when you had this
    <IfModule mod_security.c>
    <Files post.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    as the .htaccess? And without an .htaccess you get the Not Acceptable error, correct?

    Thread Starter swalker1974

    (@swalker1974)

    I believe so, but I think I had that .htaccess file in the wp-admin directory. Should I add another .htaccess file with this code to that directory?…

    Yeah, I get the Not Acceptable error without the .htaccess file.

    ~Shannon

    The .htaccess file needs to be in the root directory.

    Thread Starter swalker1974

    (@swalker1974)

    I actually have two .htaccess files. One in the absolute root directory which says:

    # Use PHP5 as default
    AddHandler application/x-httpd-php5 .php

    And the other one is in my public_html folder which is the root domain folder. That .htaccess file is the new one I edited with the:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Should I combine the two files into one? Should I only have one .htaccess file? And if so, does it need to be in the absolute directory or the public_html directory?

    ~Shannon

    Yes, you can combine them and put the combination into the public html folder. That is where you have wp-includes, wp-admin, etc. correct?

    # Use PHP5 as default
    AddHandler application/x-httpd-php5 .php

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    You really should not have to do all of this to make wp work correctly. It works for thousands right out of the box. Maybe we are missing a simple solution. How many posts do you have? What is your URL?

    Thread Starter swalker1974

    (@swalker1974)

    Okay. I removed the .htaccess file from my absolute directory and combined the line that was in that file and included in the .htaccess file in the public_html directory.

    I have one post with an image using the “gallery” method and I have to have my format set to “gallery” The second post is my test image which only displays text.

    https://multimedia-creations.com

    ~Shannon

    Thread Starter swalker1974

    (@swalker1974)

    I occasionally get a You do not have permission to do that. error message when Inserting an image either via hmtl editor or using the Upload/Insert method and chose image from url.

    ~Shannon

    Thread Starter swalker1974

    (@swalker1974)

    The image I am trying to insert into my post is on my server:
    https://multimedia-creations.com/images/mePic.png

    I read on a forum that WordPress wont allow url images from a remote server.

    ~Shannon

    I just inserted the image into one of my sites with no problem.

    The front-end of your site has some errors also. What I am thinking is if this is a new installation with very few or no posts, perhaps it is time to start all over again. Deleting the db, etc. and totally reinstalling from the top.

    Then start with twentyten before the new theme to make sure it is all working.

    Thread Starter swalker1974

    (@swalker1974)

    I was afraid of having to do a complete re-install of WordPress. On a side note, the initial 3.1 install was done through this program in my cpanel called Fantastico, then I updated to 3.1.3 manually. Perhaps the Fantastico did something to my initial install.

    Is there anything else I can try before I start from scratch and do a fresh install?

    ~Shannon

    Is there anything else I can try before I start from scratch and do a fresh install?

    I think you have tried a lot and at this stage even if the initial problem is fixed I would not have confidence in the installation. With a clean install, if the initial problem comes back (hopefully not), at least we will start with a clean slate.

    If you don’t have anything to save then the whole thing should take about 10-30 minutes. Make sure you keep the information from your wp-config.php file as you will need that to complete the install.

    Does your host allow multiple databases? If not, delete the one you have as you need to create a new one.

    Look at this, https://codex.www.ads-software.com/Installing_WordPress, and just follow the directions.

    Once installed, use the default theme to make sure you can add images.

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