Having trouble getting pages to load?

Many people have been having problems getting pages to load correctly. There are a few things that you need to do and double check.

The biggest most common thing that people forget is to convert pageContent.xml to pageContent.php. This is a REQUIRED step. The template only looks for pageContent.xml when viewing it in Lightroom, but when uploaded to the server it looks for pageContent.php, and if its not there it will not load. Below are the instructions on converting the xml to php.

Converting pageContent.xml to pageContent.php:
In your exported page folder open up pageContent.xml

Find the first line:

  1. <?xml version="1.0" encoding="UTF-16"?>

Replace it with this:

  1. <?php
  2. echo "<?xml version=\"1.0\" encoding=\"UTF-16\"?>";
  3. ?>

Once you have made this change save the file as pageContent.php (not pageContent.xml) and upload it to the page folder for the page (pages/PAGE_NAME) and delete the old pageContent.xml file that was in that folder.

NOTE: YOU MUST MAKE THIS CHANGE FOR ALL PAGES OR THEY WILL NOT LOAD
___________________________________________________________________________________

Double check your Linking and uploading of the page

All your pages MUST be uploaded to a folder called “pages” on your server. If you created a page called “About Us”, upload it to “yourdomain.com/pages/aboutus”. Do yo this you need to enter “pages/aboutus” in the “Put in subfolder” field in the Upload section of the Lightroom web module. If you are putting your template in a subfolder of your domain such as “yourdomain.com/demotest/pages/aboutus” you need to enter enter “demotest/pages/aboutus” in the “Put in subfolder” field. Make sure your pages are in the correct location on your server.

Continuing with the example above, now we need to link to our newly created “About Us” page. This can be done in multiple locations within the Index template but we will put it as Menu Item 1. So in the “Label” field, enter in a name for your link (note: this has no relation to the name of the folder you uploaded for the page). Let’s call ours “About Us”. Then, in the URL field we must enter “aboutus” as the URL. Next, select “Page” as the “Link Target”. When “Page” is selected as the link target the template automatically looks like the “pages” folder for the files, that’s why there is no need to enter pages/aboutus.

If you have everything uploaded correctly, pageContent.xml converted to pageContent.php, and the links set up correctly you should have no problem. Also, you need to have php on your server.

Share This Post These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Google
  • Reddit
  • StumbleUpon
  • Technorati
  • YahooMyWeb

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

To make things easier, I created a few FTP Presets.

The first is mydomain LRG Complete Web Site. It points to the directory /htdocs/mydomain/demo.

The second is mydomain LRG Complete Pages. It points to the directory /htdocs/mydomain/demo/pages.

Then, when I upload a page, I choose this preset, select the checkbox include subdirectory and type the name of the page, i.e., ‘aboutus’, and then upload.

This makes it easier because I don’t have to remember the name ‘pages’ (Pages? Page? page?) and I don’t have to remember the ‘/’ (’\'?).

Just a thought.

David.

Leave a comment

(required)

(required)