Jump to content
anjuks

Migration to live server errors

Recommended Posts

anjuks

Just uploaded my site to the live server from my local installation (all files and database). Config file, htaccess all ok. Updated the URL paths in the DB on the server as I normally do but am getting the following error:

Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/Users/user/Google Drive/Sites/promcountryagedcare/wp-content/themes/pagelines/sections/banners/section.php) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT:/home/chroot_bind/php/php5/usr/local/lib/php/) in /home/b-web/b5/bd/promcountryagedcare.com.au/public/www/wp-content/themes/pagelines/includes/class.register.php on line 129

It seems that Pagelines info in the DB is still pointing to the local server.

Any thoughts? Or, can you direct me to instructions for uploading to live server.

Share this post


Link to post
Share on other sites
Simon

go to wp-admin, click on the 'store' tab to recache the sections, or, in the database list wp_options and search for %transient% and delete the entries

Share this post


Link to post
Share on other sites
anjuks

Also, exported the PL settings from the local server and imported into the live server and the logo paths were reset to Pagelines logos.

It seems all kind of weird things like this occur during moving a site from one server to another.

There must be (or I hope there is) some documentation to tell us what the correct process is (apart from the usual WP migration process which is already well documented in the WP codex), but I havent' been able to find it.

Share this post


Link to post
Share on other sites
anjuks

Thanks Karma. Sorry, I didn't see your reply before I did the following which also fixed the issue:

While still on the local server, I did a search and replace (using the Search and Replace plugin) in the database to update all the URL's to the live server. Then exported and imported the DB. That seemed to work apart form the Pagelines settings as per the above post.

Can you still direct me to online documentation regarding all this?

Much appreciated. See www.promcountryagedcare.com.au

Share this post


Link to post
Share on other sites
Simon

Unless you edited something in the database, importing the settings will transfer the settings, unless that setting was blank before. The only way the default can go in there, is either the setting was blank, or broken.

There are too many ways for users to work locally for us to make a documented method, we can only make suggestions.

Like:

Use MAMP, with virtual hosts, that way all the urls will be the same locally as they are remotely, no need to export/edit/import anything. Just upload the files and import the database.

If your using search and replace, why are you importing pagelines settings? I mean your importing the whole (fixed) database which already has the settings ??

Share this post


Link to post
Share on other sites
anjuks

Yeah, I know. I was bemused by that too. I simply probably overlooked something.

Ok, generally then, it sounds like I have the correct process. Thanks for the tip about using virtual hosts on MAMP. I'm using MAMP but not the virtual host feature yet. Makes sense!

Thanks again.

Share this post


Link to post
Share on other sites
Simon

Gonna set this as answered if thats ok for moderation sake

Share this post


Link to post
Share on other sites
Simon

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • janpeeters
      By janpeeters
      Over the last month I had extensive communications with the developer of the (premium) Anything Boxes section (in Pagelines store) (Adam Munns) and the developer of the WP Polylang Multilingual plugin (Frederic Demarle).
       
      This was because the following problem occurred:
      Anything Boxes showed all posts of two languages (Dutch and English) on the respective static frontpages for each language. It should of course have filtered posts for Dutch language on the Dutch frontpage and English on the English frontpage.
       
      The solution to this problem was simple in the end. When duplicating a page for use in another language the settings for Anything Boxes were not copied to the new page and I should have set these settings manually again on the new page. I wasn't aware of this, but it makes sense. Because of this the pages didn't know how to differentiate between posts from different languages.
       
      The dev of Polylang told me that Polylang is currently smart enough to synchronize metas like Featured images and page templates but it does not work out of the box with metas created by plugins and themes but (according to Frederic) it is rather easy to add them in the list using the filter 'pll_copy_post_metas'.
      He mentions that he is not sure that these 'PageLines Meta Settings' are stored in post meta but that would make sense according to him. He asks if the Pagelines dev team will be interested to support this feature in the future.
       
      I'm also wondering if you will consider adding Polylang translation support for manually editable strings like the 'Read more…' strings in Pagelines Settings.
       
      Well that's of course up to you but I thought to let you know to be able to take this into consideration. I also post this for other users in case they experience the same kind of trouble and are looking for an answer.
       
      Best regards,
      Jan Peeters
    • bankrollbuilder
      By bankrollbuilder
      I used a custom hook to put a banner ad in my header. It works but its not in the right position. it is centered and above my logo and I would like to float it to the right of my logo in the header. heres the link: http://shaboopie.com/shaboopie-wp/free-logos-pg1/

      thanks.

      Dan B.
    • starlit
      By starlit
      Can one have two hero sections on one page?

      I want a landing page which leads/advertises two subpages.

      Or is there another option?

      Please help.

      THANK YOU
    • hutruk
      By hutruk
      Hi!

      I am using the shortcodes for tabs, as described in the documentation.

      When I insert the following code:


      [pl_tabs][pl_tabtitlesection type="tabs"] [pl_tabtitle number="1"]Title 1[/pl_tabtitle] [pl_tabtitle number="2"]Title 2[/pl_tabtitle] [/pl_tabtitlesection] [pl_tabcontentsection] [pl_tabcontent active="yes" number="1"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [pl_tabcontent number="2"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [/pl_tabcontentsection] [/pl_tabs]

      I get a strange output (in the attachment).

      Any ideas?

      Thanks in advance!

    • MooiWeb
      By MooiWeb
      Hello,

      I would like to align my qtranslate with my breadcrumb so that the flags are on the same hight.
      I'm aware of putting a code in the custom css and tryed severall codes from your site but for now, no succes

      The site i'm working on is http://nieuw.vazdias.nl

      Thx,
      Edwin



×