• Resolved miwa

    (@spheredesign)


    WordPress is installed in sub-directory “wp”.
    Only image is not displayed because the sub-directory of the url is duplicated (I checked it with google dev tool).
    Not “…com/wp/wp-contents/…” but “…com/wp/wp/wp-contents/…”.
    Other outputs work, including the url of the post and description etc.

    Another question, I turn off the adding meta option of the plugin and use own system outputting OG image, twitter card urls correctly. But the Plugin use its own output tags.
    Do I need to use the setting of the plugin instead of our own setting?

    (Smart License)

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello,

    Thanks for reaching out.

    We noticed that you already contacted us directly with your issue.
    In order to help you we will continue supporting you in this way.

    Thread Starter miwa

    (@spheredesign)

    Thank you for your notification.
    Sorry, does “in this way” mean that you replay to me on this forum?

    We purchased the license to use Auto-Post,
    and need your support.

    • This reply was modified 3 years, 10 months ago by miwa.
    • This reply was modified 3 years, 10 months ago by miwa.
    • This reply was modified 3 years, 10 months ago by miwa.
    Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello,

    Thanks for your feedback.

    Rest assured, of course we keep supporting you and answered your ticket yesterday before informing you here.
    Please be so kind as to try the recommended steps.

    Thread Starter miwa

    (@spheredesign)

    Thank you for your replay.
    I’m so sorry. I contacted on this forum, because I could not have received your reply because your mail was in spam folder. (I just found it.)
    Thank you.
    I’ll send my feedback directly via mail.

    • This reply was modified 3 years, 10 months ago by miwa.
    Thread Starter miwa

    (@spheredesign)

    I didn’t receive your reply after sending the details of issue to Blog2Social Customer-Service on 2021/01/05 20:49 (JP time).
    #482733

    I’d like the plugin developer to know and let me know how to solve this problem.
    I’d also like to know whether you have the same problem if WordPress is installed in the sub directory?

    Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello Miwa,

    Thanks for your feedback.

    May I ask you which of the replies you are missing?
    You replied to a couple of emails we sent to you as an answer to your requests.
    Did you try the recommended instructions you received from our experts at Blog2Social on the 7th and 8th of January?

    We noticed from the screenshots you sent us that the images in your posts do not provide the complete image URL.
    In this case Blog2Social is trying to complete your image URL with your blog URL and this is why the sub-directory is duplicated.
    Please be so kind as to check if you can enter the complete URL for your images in your posts.
    The following tutorial shows you exactly how you can adjust your URL:

    Changing The Site URL

    Please let us know if this works out for you or if you have any further questions. I’m looking forward to your reply.

    Thread Starter miwa

    (@spheredesign)

    I didn’t receive the recommended instructions on the 7th and 8th of January.
    Could you forward it for me via email?

    Our web site doesn’t have any problem except the lack of images in your plugin widget.
    WordPress media library is correctly displayed.

    I mentioned the details via email and asked if you have the same case like this when the wordpress is installed in the subdirectory.

    Giving WordPress Its Own Directory


    ‘WP_HOME’, ‘https://example.com/wp’
    ‘WP_SITEURL’, ‘https://example.com’

    The subdirectory of the image urls in your plugin is duplicated.
    The other information including the post url is correctly output and displayed in your plugin.

    If turning on adding OG image of the plugin, the subdirectory of the url is also duplicated.
    If turn it off, the url is correct by our own setting.

    I guess Auto-Post doesn’t work when the new post is published because the lack of image too.

    Thread Starter miwa

    (@spheredesign)

    I’m so sorry I found your mails in the spam folder.

    Now I understand what you mean.
    I realize Urls of images are root path.
    I’ll try this adjustment first.

    If it doesn’t work, do you mean WP_HOME and WP_SITEURL should be set in the same directory to use the plugin?
    Does it means this problem might happen when the wordpress is installed in the subdirectory as below?
    WP_HOME https://example.com/wp
    WP_SITEURL https://example.com

    Thank you.

    • This reply was modified 3 years, 10 months ago by miwa.
    Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello Miwa,

    Thanks for your feedback.

    Of course, we will also send you these instructions via email.

    This issue is due to the fact that the specific settings on your site prevent that the image URL is correctly transmitted to the plugin, even though the images are correctly displayed on your website and in your media library. However, you can solve this issue by following the instructions we provided you with.

    If you enter the URL you sent us you will get to a 404 not found page as this is a technical path:
    https://www.star-kyoto.co.jp/wp

    This is most probably the reason why the /WP/ directory in the image URL is duplicated,
    because that is where Blog2Social fetches this information from.

    If you delete the /wp from the WP_HOME setting, the image URL should be transmitted correctly:
    ‘WP_HOME’, ‘https://example.com/wp’
    -> ‘WP_HOME’, ‘https://example.com’

    Please be so kind as to adjust your URL in your WordPress settings.

    Please let me know if it works for you afterwards or if you have further questions.

    Thread Starter miwa

    (@spheredesign)

    Thank you for your generous support.

    Thread Starter miwa

    (@spheredesign)

    The URLs of the images output in the plugin are correct after we stopped using the function code using the root path.
    We solved the problem.
    I apologize for letting you five me a lot of feedback.
    Thank you so much.

    Please be so kind as to think using “home_url” instead of “site_url” in your Plugin code because I think there are many cases where image url is root path if image url without ”https://domain.com”.

    if (!preg_match(‘/^https?:\/\//’, $image)) {
    // Remove any starting slash with ltrim() and add one to the end of site_url()
    $image = site_url(‘/’) . ltrim($image, ‘/’);
    }

    We used the root path of images in Media Library because it’s easier to migrate from the test environment.
    I also think there are cases where wordpress installed in subdirectory and home url is not the same as site url.
    I guess there are many cases with these 2 conditions like this.
    1.Different site URL and home url settings
    2.Using root path of images

    Thank you.

    • This reply was modified 3 years, 10 months ago by miwa.
    • This reply was modified 3 years, 10 months ago by miwa.
    • This reply was modified 3 years, 10 months ago by miwa.
    • This reply was modified 3 years, 10 months ago by miwa.
    Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello Miwa,

    Thank you for your feedback and the detailed information.

    Great to hear that it worked out for you. I will gladly add your suggestion to our feature list for future developments.

    Please let me know if you have any other questions.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘No image because the wrong URL outputted by the plugin’ is closed to new replies.