Title: songee's Replies | WordPress.org

---

# songee

  [  ](https://wordpress.org/support/users/songee/)

 *   [Profile](https://wordpress.org/support/users/songee/)
 *   [Topics Started](https://wordpress.org/support/users/songee/topics/)
 *   [Replies Created](https://wordpress.org/support/users/songee/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/songee/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/songee/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/songee/engagements/)
 *   [Favorites](https://wordpress.org/support/users/songee/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Mautic] wpmautic_send() does not execute](https://wordpress.org/support/topic/wpmautic_send-does-not-execute/)
 *  Thread Starter [songee](https://wordpress.org/support/users/songee/)
 * (@songee)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/wpmautic_send-does-not-execute/#post-14070047)
 * Hi [@shulard](https://wordpress.org/support/users/shulard/).
 * I wonder if there are any news about the issue?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media File Renamer: Rename for better SEO (AI-Powered)] Renaming image in dashboard results in incorrect srcset attribute](https://wordpress.org/support/topic/renaming-image-in-dashboard-results-in-incorrect-srcset-attribute/)
 *  Thread Starter [songee](https://wordpress.org/support/users/songee/)
 * (@songee)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/renaming-image-in-dashboard-results-in-incorrect-srcset-attribute/#post-14067170)
 * Hi [@tigroumeow](https://wordpress.org/support/users/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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Double forward slashes after defining UPLOADS in wp-config.php](https://wordpress.org/support/topic/double-forward-slashes-after-defining-uploads-in-wp-config-php/)
 *  Thread Starter [songee](https://wordpress.org/support/users/songee/)
 * (@songee)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/double-forward-slashes-after-defining-uploads-in-wp-config-php/#post-14048012)
 * By 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 under `https://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.png`
 * I’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.png`
 * I’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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Mautic] wpmautic_send() does not execute](https://wordpress.org/support/topic/wpmautic_send-does-not-execute/)
 *  Thread Starter [songee](https://wordpress.org/support/users/songee/)
 * (@songee)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wpmautic_send-does-not-execute/#post-14043271)
 * Of course. Here is the website: [https://polynook.com](https://polynook.com)
 * And the WP Mautic plugin settings: [https://imgur.com/a/VQoxJzM](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](https://imgur.com/a/67UeZmZ).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gutentor - Gutenberg Blocks - Page Builder for Gutenberg Editor] Does Gutentor have a modal/popup block?](https://wordpress.org/support/topic/does-gutentor-have-a-modal-popup-block/)
 *  Thread Starter [songee](https://wordpress.org/support/users/songee/)
 * (@songee)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/does-gutentor-have-a-modal-popup-block/#post-14040317)
 * Hi [@codersantosh](https://wordpress.org/support/users/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://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.asp](https://www.w3schools.com/howto/howto_css_modals.asp)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Mautic] wpmautic_send() does not execute](https://wordpress.org/support/topic/wpmautic_send-does-not-execute/)
 *  Thread Starter [songee](https://wordpress.org/support/users/songee/)
 * (@songee)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wpmautic_send-does-not-execute/#post-14035706)
 * Thank 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](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](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](https://mywebsite.com/mautic/index.php/form/generate.js?id=6)
   with the index.php in the link.
    -  This reply was modified 5 years, 6 months ago by [songee](https://wordpress.org/support/users/songee/).

Viewing 6 replies - 1 through 6 (of 6 total)