Home › Forums › WordPress Plugins › Hide My WP › Image upload – multisite
- This topic has 11 replies, 2 voices, and was last updated 9 years, 9 months ago by
Suman M..
-
AuthorPosts
-
October 1, 2015 at 1:20 am #4845
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 !
AlbertoOctober 1, 2015 at 2:39 am #4850Hi, what exactly is the issue here? Is it that there is double slashes (//) before inc? Let us know.
October 1, 2015 at 11:42 am #4858H 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]October 2, 2015 at 1:07 am #4867Hi 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
October 2, 2015 at 3:43 am #4871Hi, 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.
October 5, 2015 at 2:50 pm #4940This reply has been marked as private.October 5, 2015 at 2:59 pm #4941Hi,
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 !
AlbertoYou can install any plugins as you wish there.
October 5, 2015 at 10:02 pm #4943Hi,
He enabled Hide. Error 1 (see msg above) rises.
Any tips ?
Thanks,
AlbertoOctober 6, 2015 at 6:17 am #4952Hi, 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..
October 6, 2015 at 11:46 am #4963Hi Suman,
I See that is working. If you could explain why, please ?
Many thanks!
Alberto
October 6, 2015 at 11:55 am #4964Hi 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,
AlbertoOctober 7, 2015 at 2:34 am #4975Sorry 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.
-
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.