Jump to content

localPath not callable


reems
 Share

Recommended Posts

Hi,

I have unexpected strange behaviour in just one page (the sitemap) in a multilanguage site.

The sitemap workes fine in both languages (Dutch and German), but on the Dutch page the footer has gone.

All other pages of the site give no problem whatsoever.

Without changing anything in the scripts or templates I now get in the Dutch sitemap the following error:

Fatal error: Exception: Method Page::localPath does not exist or is not callable in this context (in /home/travelinlu/domains/travelinluxury.nl/public_html/wire/core/Wire.php line 320) in /home/travelinlu/domains/travelinluxury.nl/public_html/index.php on line 216
For every page I include the same header and footer templates.

In the footer template I use the following:

$urlde = $page->localPath("de");
$urlnl = $page->localPath("nl");

<a href='<?php print $urlnl ?>'>NEDERLANDS</a></br>
  <a href='<?php print $urlde ?>'>DEUTSCH</a></br>
Anyone an idea what is happening?
Link to comment
Share on other sites

It seems that my problem has something to do with the sitemapXML Module I use.

When I rename the page the sitemap in the site itself is in, to something different then "sitemap", the problem disapears.

The German sitemap was on domainname/de/sitemap/. That's different from the sitemap.xml in the root of the site (from the module), so that German sitemap did not give any problems.

Does anybody has an idea or experienced the same problems.

I prefer to name the sitemap in the site itself also "sitemap", so a solution is still needed.

Thanks.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...