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?
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?
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
How would I add the appropriate code to the Content Block Controller?
Rgds,
Gary
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 with and on line 38 in that same file with
There might be other instances of this happening within the package too, if there are they can be replaced the same way.
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);
Loader::helper('content')->translateFrom($this->content);
$controller->translateTo($content);
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.
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.
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 :)
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 :)
My thanks to hutman - fixed my problem too!
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).