Page mapper Addon - In need of some help (as no support coming from creator)

Permalink 1 user found helpful
Hi all,

I was wondering if anyone out there has been using the add-on Page Mapper (Google Maps)

I recently upgraded to the newest version of Concrete5 and now I am having some real issues (on top of what I previously reported to the creator)

There is an error coming when clicking on the map icons: -

Fatal error: Call to undefined method ContentBlockController::translateFrom() in /home/hhtscom/domains/where2eat.asia/public_html/packages/scottc_page_mapper/models/map_items.php on line 44

I have looked in the file and can't work out what is causing the issue since the update. Any ideas?

garyjhills
 
hutman replied on at Permalink Reply
hutman
Unfortunately this Add-On might not have been tested with the version of Concrete5 that you are using. It appears that the add-on uses the translateFrom method in the Content Block Controller, which may have been removed from the version of Concrete5 you are using. I would suggest you add that back into the Content Block Controller so this add-on works again.

What version of Concrete5 did you upgrade to? We have used this Add-On with 5.6.2.1 with no problems (we did customize it a bunch though).
garyjhills replied on at Permalink Reply
garyjhills
Hi hutman, thanks for the reply. It was working ok with 5.6.2.1 then I upgraded to 5.6.3.1 and it stopped. There were some issues with the add-ons functionality but that is a different issue.

How would I add the appropriate code to the Content Block Controller?

Rgds,

Gary
hutman replied on at Permalink Best Answer Reply
hutman
Hello Gary,

It looks like there might actually be an easier way to fix this problem than adding that function back into the Content Block Controller.

In 5.6.3.1 it looks like there is a new Content Helper so on line 44 of your /public_html/packages/scottc_page_mapper/models/map_items.php replace
$controller->translateFrom($content);
with
Loader::helper('content')->translateFrom($this->content);
and on line 38 in that same file
$controller->translateTo($content);
with
Loader::helper('content')->translateTo($this->content);


There might be other instances of this happening within the package too, if there are they can be replaced the same way.
kspitzley replied on at Permalink Reply
kspitzley
hutman, you are a life-saver! I am going to start a discussion in this add-ons support and link to your answer to hopefully help direct any other with this issue.
garyjhills replied on at Permalink Reply
garyjhills
Thanks Hutman. I actually managed to completely bugger up my site anyway so am going to have to rebuild it all anyway I think :( but thank you for all your help anyway :)
losttheplot replied on at Permalink Reply
Thanks for the heads up re the new Content Helper in 5.6.3.1, hutman - this has just caught me out big time with loads of my own custom blocks, but your post has enabled me to fix things quickly :)
mostrim replied on at Permalink Reply
My thanks to hutman - fixed my problem too!