Home Forums WordPress Plugins Hide My WP Image upload – multisite

This topic is: resolved
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #4845
    adeveloper
    Active
    Post count: 23

    Hi,

    On a multisite, on site /place (site ID 2) I have my htaccess:
    RewriteRule ^file/(.*) /wp-content/uploads/$1?hiG_hide_my_wp=1234 [QSA,L]

    HIDE on wp-content is set to ‘/inc’

    When upload image on the database (wp_2_posts) it puts:
    /devdynamusnet//inc/uploads/sites/2/job-manager-uploads/gallery_images/2015/10/new-nsx.jpg

    //inc is NOT a typo.

    The file (image) is uploaded correctly to the filesystem.

    Any tips to fix this ?

    Uses woocommerce, listify theme.

    Thanks in advance !
    Alberto

    #4850
    Suman M.
    Post count: 12480

    Hi, what exactly is the issue here? Is it that there is double slashes (//) before inc? Let us know.

    #4858
    adeveloper
    Active
    Post count: 23

    H Suman,

    The image is not displayed. The double slashes is not the problem. As I understand, on the path the /wp-content had to be written over the /inc.

    My question is: on the htaccess what I do to correctly manage the images ?

    I try this:
    #Alberto
    RewriteRule ^place/inc/(.*) /place/wp-content/$1?hiG_hide_my_wp=1234 [QSA,L]

    #4867
    adeveloper
    Active
    Post count: 23

    Hi Suman,

    Made a complete re-install.

    The ingredients:

    — multisite
    — root site Kleo theme
    — Listify theme -> directory renamed to place (we are working here)
    — Listify uses wp-job-manager plugin.
    — woocommerce not configured.

    Before HIDE:
    100%. Can check the image (one is enough – do not need many). Background image is there. Listify call it cover image. On Listify preview job-post page the image is there. Made several tests, all ok.

    After HIDE:
    Job-posts before HIDE are still OK. New image posts are not shown on the preview.

    I see on listify code that on themes/place/functions.php – line 380

    $image = apply_filters( ‘listify_cover_image’, $image, $args );

    if ( ! $image ) {
    $class .= ‘ no-image’;
    return sprintf( ‘class=”%s”‘, $class );
    }

    The page system already knows that there is no image in it. The no-image is shown on browse source.

    Any tips ?

    Alberto

    #4871
    Suman M.
    Post count: 12480

    Hi, can you please let us know the actual page URLs where we can see this image issue? Also let us know the login details if it’s required to view these pages.

    #4940
    adeveloper
    Active
    Post count: 23
    This reply has been marked as private.
    #4941
    adeveloper
    Active
    Post count: 23

    Hi,

    Credentials are on the above msg.

    Goto site 2 (/place) if Hide is disables (like now) I can upload images and even see on preview. If Hide is On the image is uploaded to the system but I can get tree kinds of errors:

    1) HTTP wrapper does not support writeable connections. No preview is shown.

    2) Preview is shown but the image is not displayed.
    2.1) i I go to the database and fix two columns there, everything is seen correctly.
    2.2) DB fix: A)INSERT _thumbnail_id info under postmeta. B) fix image path on postmeta.. the correct form is not the full path but instead job-manager path to the end.

    3) Full plugin rename sometimes do not work. I tried a import config and a from scratch config and nothing.

    Thnaks !
    Alberto

    You can install any plugins as you wish there.

    #4943
    adeveloper
    Active
    Post count: 23

    Hi,

    He enabled Hide. Error 1 (see msg above) rises.

    Any tips ?

    Thanks,
    Alberto

    #4952
    Suman M.
    Post count: 12480

    Hi, I emptied “New wp-content path” option in permalinks & urls tab. Now it seems to be working fine. I could add a listing with images – http://odin.dynamus.club/place/listing/london-test14/

    • This reply was modified 9 years, 9 months ago by Suman M..
    #4963
    adeveloper
    Active
    Post count: 23

    Hi Suman,

    I See that is working. If you could explain why, please ?

    Many thanks!

    Alberto

    #4964
    adeveloper
    Active
    Post count: 23

    Hi Suman,

    Also need to hide the fact I use woocommerce. I see that you have erased all HTML replace. I ll try to get it working myself.

    Thanks again,
    Alberto

    #4975
    Suman M.
    Post count: 12480

    Sorry forgot to mention that. The HTML replacement you have added was not correct. For relacing URLs you need to use “replace urls” option. So I’ve moved your replacement from “replace in html” to “replace in url” and since all 3 replacements were for same URL, I’ve added only one.

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.