Phoca Maps rocks!

Phoca Maps - displaying maps in Joomla! CMS
thepimster
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2012, 13:51

Phoca Maps rocks!

Post by thepimster »

Hi all,
Last night I migrated from Joomla 3.10.x to Joomla 4.2.8, which was somewhat harrowing, but it's done and we are back!
Unfortunately none of my maps showed up, but instead only a grey line....
Read various posts in this forum, and found out I now have to set a px value for height and with, or leave both at 0.

So, great component and great support, and still a very happy Phoca Maps user for probably 10 years now, thanks!

One question though; I have 450 different maps (and growing), on equally as many pages. Do I have to manually change them all, or is there a smarter way to do this?

Thanks so much, and keep it up!
Pim
https://museumships.us/
thepimster
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2012, 13:51

Re: Phoca Maps rocks!

Post by thepimster »

Follow up question, as apparently I can't add new maps.
When I try to save a new map I get following error:
Save failed with the following error: Field 'params' doesn't have a default value
:(
What to do?
Thanks
Pim
thepimster
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2012, 13:51

Re: Phoca Maps rocks!

Post by thepimster »

Ok, in the meantime I found another post explaining how to fix the error in the database via phpMyAdmin so that is solved.
Remains my question in the first post
Thanks
Pim
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47821
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Maps rocks!

Post by Jan »

Hi, better way would be using some SQL query directly, changing only the column for width and height directly in database. But it depends on many factors, like if the values are the same or different, etc. :idea:
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47821
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Maps rocks!

Post by Jan »

Hi,
before editing the SQL and all the columns, try to test newest Beta (4.0.1Beta)

https://github.com/PhocaCz/PhocaMaps/re ... .1Beta.zip

I have added there some conditions that if the values will not include unit, "px" will be automatically added, so this should help in your case

Image

Please let me know if this works for you.

Jan
If you find Phoca extensions useful, please support the project
thepimster
Phoca Member
Phoca Member
Posts: 29
Joined: 17 Sep 2012, 13:51

Re: Phoca Maps rocks!

Post by thepimster »

Hi Jan,
I have installed 4.0.1 Beta, but it doesn't change anything for my existing maps
On a new map, setting a value (without px) for width and height just gives me a full-width gray line. When adding 'px' to both values works as expected.
It was worth a shot, but I am going to look in to changing the settings via the database.
Thanks
Pim
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47821
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Maps rocks!

Post by Jan »

Hi, did you clear the cache, etc, I am testing it now, I can add standard values without units and they are translated to px :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply