Home>Support>Page Builder Problem

Page Builder Problem

Hi,

I’m new to wordpress and setting up apache servers.
I set one up locally on my laptop following the guide on ubuntu:
https://help.ubuntu.com/community/WordPress
I had to change /etc/wordpress/config-localhost.php define(‘WP_CONTENT_DIR’, …. to the correct path.

Then installed Vantage and PageBuilder. Page builder is not working at all see image

View post on imgur.com

When i look at the picture that doesnt display url it is:

/wordpress/wp-content/plugins/usr/share/wordpress/wp-content/plugins/siteorigin-panels/css/images/handle.png

So why does Page Builder think /wordpress/wp-content/plugins/ is root?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 1 month ago Greg Priday
    Hi, I Work Here

    Hi Craig

    From the looks of things, the CSS and JS isn’t being loaded properly on that page. Page Builder uses the standard plugin_dir_url function to get the URLs of the CSS and JS. This function, in turn, relies on the plugins_url function.

    http://codex.wordpress.org/Function_Reference/plugin_dir_url
    http://codex.wordpress.org/Function_Reference/plugins_url

    I can’t offer you an exact solution in your situation, but you’ll need to make sure that any changes you make are compatible with these 2 functions.

  2. 10 years, 1 month ago Craig Swift

    Hi,
    Thanks for you reply.
    I have spent quite abit of time trying to find out the corse of this issue. I have gone through a complete install of ubuntu, LAMP and wordpress just to check I had not made an mistakes during the install.

    I have been able to narrow this down to being a problem with this plugin specifically. I have now gone and installed several plugins to check that its not an issue with the wordpress install. I do belive the problem is with how url to the css/js is generated using plugin_dir_url and plugin_dir_path.

    Furthermore, the ony reason I can think that it donsnt work on my dev machine, but works for other peoples websites is because wordpress url is at localhost/wordpress – its clutching at straws but i have no idea what i need to change in your code to make fix the url look up.

    I could really do with somemore guidance on were to look to debug this issue or I will have to abandone plans to use vantage premium for my website.

    Warm Regards

    Craig

  3. 10 years, 1 month ago Craig Swift

    I bit more digging and the issue is that it is adding the full directory path location of the css / images / js to the website url so it giving out:

    http://localhost/wordpress/wp-content/plugins/usr/share/wordpress/wp-content/plugins/siteorigin-panels/css/images/handle.png

    Instead of
    http://localhost/wordpress/wp-content/plugins/siteorigin-panels/css/images/handle.png

  4. 10 years, 1 month ago Craig Swift

    I think i’ve found the real issue, not the soloution yet:

    My wordpress install is: /usr/share/wordpress
    My website access wordpress via: /var/www/html/SYMBOLIC_LINK_TO_ABOVE

    Apparently __FILE__ resolves to the real path, which confuses plugin_basename()

    I’m looking into how to fix this for more info:

    https://core.trac.wordpress.org/ticket/16953

  5. 10 years, 1 month ago Greg Priday
    Hi, I Work Here

    Hi Craig.

    Please keep us updated on this and let us know if you find a solution. I have seen this issue come up in the past and it’d be great to be able to point people in the right direction for a solution.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More