songee
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Mautic] wpmautic_send() does not executeHi @shulard.
I wonder if there are any news about the issue?
Hi @tigroumeow
Thanks for lightning fast response!
I’m using WP Super Cache and Autoptimze and I cleared them every time when I was figuring out how to reproduce the issue. I also cleaned out browser cache in addition but the issue remained.
In the image, the file is named blender_viewports.png. I renamed it from blender_workspace_viewports.png, so the change is reflected in the
srcset. However, it looks like the URL is missing the “media” part between the double forward slashes?Forum: Fixing WordPress
In reply to: Double forward slashes after defining UPLOADS in wp-config.phpBy default, WordPress will put media uploads under
https://website.com/wp-content/uploads/I’d like a shorter URL because the wp-content part in the URL is pretty useless from the users point of view.
With the
define( 'UPLOADS', 'files' );line in the wp-config.php, WordPress puts media uploads underhttps://website.com/files/This is the behavior I want. However, the URLs of the uploads have an additional forwards slash added to them, which is undesirable, eg.:
http://website.com/files//img.pngI’ve Googled some and changed this line:
define( 'UPLOADS', 'files' );
to
define( 'UPLOADS', ''.'files' );And the extra forward slash from the URLs appears to be gone. URLs are now correct, eg.:
http://website.com/files/img.pngI’m not sure why or how it works. Would be really nice if someone knowledgeable could confirm if this is indeed the correct and reliable fix for this issue.
Forum: Plugins
In reply to: [WP Mautic] wpmautic_send() does not executeOf course. Here is the website: https://polynook.com
And the WP Mautic plugin settings: https://imgur.com/a/VQoxJzM
I checked the network tab again and it seems that the mtc.js is indeed loaded when cookies are accepted, but the error is still there and Mautic tracking cookies don’t get set.
Hi @codersantosh,
Thank you for getting back to me. Unfortunately, the solution you proposed doesn’t work as I’d like. The way it works is it opens the content of a page inside a popup window after about 1 second or so of loading. It doesn’t appear immediately as most popups work on the web. And on mobile, the popup doesn’t appear at all – the page content simply opens in a new page overwriting the content of the old page.
The popup I had in mind was something akin to the ones seen in these pages:
https://webdesign.tutsplus.com/tutorials/how-to-build-flexible-modal-dialogs-with-html-css-and-javascript–cms-33500
https://www.w3schools.com/howto/howto_css_modals.aspI can probably replicate these by using a regular Gutenberg custom HTML block, but having these in a form of a Gutentor block would be way more convenient.
Forum: Plugins
In reply to: [WP Mautic] wpmautic_send() does not executeThank you for lending me a hand, shulard!
I’ve checked the network tab and the only Mautic related JS files that are loaded are generate.js and mautic-form.js.
I’m running an nginx webserver and previously had a problem where loading https://mywebsite.com/mautic/mtc.js resulted in 404 error and I had to load it via https://mywebsite.com/mautic/index.php/mtc.js for it to work.
I made the following changes in the server bock of my nginx configuration file to make it load without the index.php in the link:
location /mautic/ { try_files $uri $uri/ /mautic/index.php$is_args$args; location ~ \.php { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.3-fpm.sock; include /etc/nginx/my_includes/fastcgi_optimize.conf; } } location = /mautic/mtc.js { expires off; default_type "application/javascript"; try_files $uri $uri/ /mautic/index.php$is_args$args; } location = /mautic/form/generate.js { expires off; default_type "application/javascript"; try_files $uri $uri/ /mautic/index.php$is_args$args; }I think there may be a problem with the way nginx is configured on my end since I’m executing wpmautic_send() correctly?
Also, the network tab shows that generate.js file is being loaded from the URL https://mywebsite.com/mautic/index.php/form/generate.js?id=6 with the index.php in the link.
- This reply was modified 5 years, 3 months ago by songee.