Problems, need help? Have a tip or advice? Post it here.
6 posts Page 1 of 1
Hi,

I am a little confused.

When I turn on pretty urls at https://thepersianride.com/

my .svg map does not appear anymore at https://thepersianride.com/saffron-kick-tour.php
when the url is https://thepersianride.com/saffron-kick-tour/

How can the .htaccess mod_rewrite make the map not showing up anymore?

Is there a fix? I tried mostly everything I know, but the problem persist.

Thanks,
Paolo
Ok, it's worst than I thought.

I just changed
/ 1.
// If necessary, define the full URL of your site including the subdomain, if any.
// V.IMP: Don't forget the trailing slash!
define( 'K_SITE_URL', 'https://thepersianride.com/' );

otherwise the mosaic popup does not work.

And now I can't even activate the pretty URLs... Might be a server problem?
What is the web server's error log reporting?
[18-Feb-2019 11:29:06 America/New_York] PHP Warning: mb_internal_encoding(): Unknown encoding "K_CHARSET" in /home2/thepeso2/public_html/couch/header.php on line 62
[18-Feb-2019 11:29:06 America/New_York] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /home2/thepeso2/public_html/couch/includes/mysql2i/mysql2i.class.php on line 139
[18-Feb-2019 22:49:47 America/New_York] PHP Warning: mb_internal_encoding(): Unknown encoding "K_CHARSET" in /home2/thepeso2/public_html/couch/header.php on line 62
[18-Feb-2019 22:49:47 America/New_York] PHP Warning: htmlspecialchars(): charset `K_CHARSET' not supported, assuming utf-8 in /home2/thepeso2/public_html/couch/functions.php on line 880
[18-Feb-2019 22:49:47 America/New_York] PHP Warning: htmlspecialchars(): charset `K_CHARSET' not supported, assuming utf-8 in /home2/thepeso2/public_html/couch/functions.php on line 880
[18-Feb-2019 22:49:47 America/New_York] PHP Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /home2/thepeso2/public_html/couch/includes/mysql2i/mysql2i.class.php on line 139
The warnings don't seem to be related to the problem at hand (although you might want to fix the K_CHARSET setting in couch/config.php).

I am not sure about the cause of the error being thrown but, I think, I can see what caused the SVG map problem originally -
The reason why the svg map failed to work with prettyURLs can be tracked to your 'app.js' having the following directive -
Code: Select all
mapSrc: "img/map.svg",

As you can see, since the path is relative, with prettyURLs on it will try to located the map within a non-existent folder.

Please see if this can be rectified.
HI KK,

When I have
// 1.
// If necessary, define the full URL of your site including the subdomain, if any.
// V.IMP: Don't forget the trailing slash!
define( 'K_SITE_URL', 'https://thepersianride.com/' );

I need
// 1.
// If necessary, define the full URL of your site including the subdomain, if any.
// V.IMP: Don't forget the trailing slash!
//define( 'K_SITE_URL', 'https://thepersianride.com/' );

so the pretty urls are created, but the popup of Mosaic does not work anymore.

But the map works now.... it's already that!
6 posts Page 1 of 1
cron