• I have an instance of WordPress set up on a clients server with the databases being hosted elsewhere. The clients server is not compatible with WordPress which is why the databases are hosted off of it. Additionally, the reason the entire site is not hosted elsewhere has to do with accessing a password protected area. I have everything configured correctly and the site is working, however, I am having some issues with the layer slider and shortcodes. Instead of executing correctly I am getting the shortcode text on the screen:

    layerslider id=”1″]

    [content_boxes layout=”icon-with-title” columns=”2″ class=”” id=””]
    [content_box title=”test” backgroundcolor=”” icon=”” iconcolor=”” circlecolor=”” circlebordercolor=”” iconflip=”” iconrotate=”” ……

    I am not receiving any errors and the client has PHP functions that were previously disabled enabled.

    Can anyone offer any advise on this or is there a workaround for it?

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Bet Hannon

    (@bethannon1)

    When shortcodes show up like that, often plugins that they refer to are not currently activated. Can you check that the Content Boxes plugin is activated?

    Thread Starter kadie

    (@kadie)

    I checked the plugins and they are activated.

    If I view the site using the domain name where the databases are located it looks as it should.
    If I view the site using the clients domain name I get the shortcodes.
    I’m wondering if this is an access problem? I have remote access set up but is there something else preventing the clients domain from interpreting the PHP?

    Moderator Bet Hannon

    (@bethannon1)

    Can you post the URL of the page where the shortcode is showing?

    Thread Starter kadie

    (@kadie)

    Moderator Bet Hannon

    (@bethannon1)

    I’m going to guess it’s a plugin conflict. Have you tried deactivating all the plugins except the ones that the shortcodes are for, and seeing if that solves your issue? If so, then start reactivating one by one until you find the culprit.

    Thread Starter kadie

    (@kadie)

    I tired deactivating all plugins but still have the same issue. I’m wondering if this has something to do with relative paths.

    Moderator Bet Hannon

    (@bethannon1)

    Why do you think it might be relative paths?

    The console shows a cross-origin resource violation and this could be preventing the subsequent code for executing properly.

    Your theme is version 3.5 but the current version is many steps ahead at 3.7.4, yet WordPress is up-to-date, so your WordPress is not contemporaneous with your theme, which can’t be good. If updating, take a backup first.

    Thread Starter kadie

    (@kadie)

    Lorro

    I did as you suggested and got an interesting result set. The domain that usually shows up as it should (where the databases are hosted) is now showing the text for the shortcode…but only the content box shortcode not the layerslider shortcode…and the other domain, where I was having the difficulty initially, now shows additional errors.

    Moderator Bet Hannon

    (@bethannon1)

    What theme are you using?

    The theme is Avada, now updated to version 3.7.4.

    https://wpamensa.com/ doesn’t show shortcode text for me so maybe you fixed it or some cache reset itself.

    The console error message is still present:
    “Font from origin ‘https://wpamensa.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://wpam.us.mensa.org’ is therefore not allowed access.”

    The fix is to configure https://wpamensa.com to allow requests from https://wpam.us.mensa.org.

    To do so, put this line in .htaccess on https://wpamensa.com

    Header add Access-Control-Allow-Origin https://wpam.us.mensa.org

    I’m shakey on CORS (cross-origin-resource-sharing) so if you need further help to get this to work there’s a lot of info out there on the subject.

    There may well be other problems here but sorting this one is somewhere to start.

    Thread Starter kadie

    (@kadie)

    I was trying different work around’s yesterday and removed the shortcode from the page.

    I also tried switching to twenty fifteen theme and it seems to work correctly.

    I will try adding the line in the .htaccess folder and see what happens.
    I will read up on CORS.

    I will post my results here after I try adding the line to .htaccess.

    I appreciate the help, Bet and lorro!

    Moderator Bet Hannon

    (@bethannon1)

    Ah! So if the short codes work perfectly in TwentyFifteen, then you know that the problem is with the Avada theme!

    You might try posting in that premium theme’s support channel, where the theme authors or other users might have seen this before and know how to help. Unfortunately, we aren’t able to help with premium themes here.

    Thread Starter kadie

    (@kadie)

    I’m sorry Bet, I wasn’t clear in my previous post. I didn’t put any shortcodes in the twenty fifteen theme. I meant to imply that when I switched to the twenty fifteen theme I did not get any of the previous errors I was getting with Avada.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Shortcodes text showing up on page with remote access’ is closed to new replies.