Title: Pacicio's Replies | WordPress.org

---

# Pacicio

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/pacicio/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/pacicio/replies/page/2/?output_format=md)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wp_mail do not send attachments with PHPMailer](https://wordpress.org/support/topic/wp_mail-do-not-send-attachments-with-phpmailer/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/wp_mail-do-not-send-attachments-with-phpmailer/#post-17296997)
 * The IDs send by the form I’m sure that are the IDs the attachment of a post because
   the form is part of the plugin, but I should add some checks on the PHP code,
   that’s for sure. Anyway, this is an internal plugin that we do not plan to make
   public.
 * However, on another website with the same hosting configuration everything works
   fine. I think is probably related to the hosting configuration or the website
   itself. I’m pretty sure is nothing coding related so I mark this as resolved.
 * Thanks for the advice!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wp_mail do not send attachments with PHPMailer](https://wordpress.org/support/topic/wp_mail-do-not-send-attachments-with-phpmailer/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/wp_mail-do-not-send-attachments-with-phpmailer/#post-17293906)
 * Yes, I’m coding this myself and this is my code: it sends the email after a form
   is compiled, using AJAX.
 *     ```wp-block-code
       add_action( 'wp_ajax_dm_send_email', 'dm_send_email' );
       function dm_send_email() {
   
       	$email    = $_POST['email'];
       	$subject  = $_POST['subject'];
       	$headers  = explode( ',', $_POST['headers'] );
       	$body     = $_POST['body'];
       	$attachments_ids = explode( ',', $_POST['attachments'] );
   
       	foreach ( $attachments_ids as $attachment_id ) {
       		$attachments[] = get_attached_file( $attachment_id );
       	}
   
       	$headers[] = 'Bcc: ' . wp_get_current_user()->user_email;
       	$content_type = function() { return 'text/html'; };
       	add_filter( 'wp_mail_content_type', $content_type );
   
       	$email_sent = wp_mail( $email, $subject, stripslashes($body), $headers, $attachments );
   
       	remove_filter( 'wp_mail_content_type', $content_type );
       	echo $email_sent;
   
       	exit();
   
       }
       ```
   
 * It should be fine because in the old hosting it was working. However any advice
   is greatly appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Create Block Theme] Version management for exported themes](https://wordpress.org/support/topic/version-management-for-exported-themes/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/version-management-for-exported-themes/#post-16745085)
 * [@thelmachido](https://wordpress.org/support/users/thelmachido/) don’t need to,
   she already mentioned the changelog in the GitHub report, I was referring to 
   that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Create Block Theme] Version management for exported themes](https://wordpress.org/support/topic/version-management-for-exported-themes/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/version-management-for-exported-themes/#post-16743972)
 * Thank you, I wanted to do it myself but I don’t know how to use Github properly.
   Also the changelog, even if simple text only, would be a great addition.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [6.0.2 Causing Google Crawl Error for admin.ajax.php](https://wordpress.org/support/topic/6-0-2-causing-google-crawl-error-for-admin-ajax-php/)
 *  [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/6-0-2-causing-google-crawl-error-for-admin-ajax-php/#post-16128960)
 * [@kuhnbnubstahl](https://wordpress.org/support/users/kuhnbnubstahl/) I have the
   same problem and I have Hello Elementor too (version 2.6.1). May it be a theme
   related issue?
 * Wordpress version is 6.0.2 and the only plugins we share are Disable Emojis, 
   Elementor, Elementor Pro and Matomo.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [AnonymousFox hack on staging website with almost no plugins. How?](https://wordpress.org/support/topic/anonymousfox-hack-on-staging-website-with-almost-no-plugins-how/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/anonymousfox-hack-on-staging-website-with-almost-no-plugins-how/#post-14345110)
 * >  It may well be that your site has been hacked for a long time ago
 * This is unlikely. The website is a fresh installation made less than one month
   ago and we installed nothing but the plugins listed.
 * This is what scares me most. A fresh installation with trusted plugins that got
   hacked. Past hacks always involved some bugged plugin or something else, but 
   this time it feels so strange.
 * I would like to understand where the possible exploit could be to prevent those
   things in the future.
 * We enabled some server-side security improvements, but we usually do these on
   published websites because we don’t expect hack on development websites. Evidently
   we were wrong.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Print post from admin with custom template](https://wordpress.org/support/topic/print-post-from-admin-with-custom-template/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/print-post-from-admin-with-custom-template/#post-11680894)
 * Good idea, I’m going to try. I only hope that 20+ fields in a URL don’t break
   everything
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Clarification on media assigned to post](https://wordpress.org/support/topic/clarification-on-media-assigned-to-post/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/clarification-on-media-assigned-to-post/#post-11422229)
 * Nevermind, solved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Meta Box preview not showing (JS error) in WooCommerce product](https://wordpress.org/support/topic/meta-box-preview-not-showing-js-error-in-woocommerce-product/)
 *  Thread Starter [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/meta-box-preview-not-showing-js-error-in-woocommerce-product/#post-11077398)
 * I’ve created the issue on GitHub: [https://github.com/Yoast/wordpress-seo/issues/12008](https://github.com/Yoast/wordpress-seo/issues/12008)
 * I mark this as resolved. For other users who want to comment, just follow the
   link.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] SEO Title and desc preview WooCommerce product](https://wordpress.org/support/topic/seo-title-and-desc-preview-woocommerce-product/)
 *  [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/seo-title-and-desc-preview-woocommerce-product/#post-11073909)
 * I’ve had a similar problem time ago. I solved by reducing the number of columns
   displayed in the page: click on “Screen options” in the top right corner of the
   page to select which columns to show or hide.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 4.6 has caused significant issues.](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/)
 *  [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/page/2/#post-7721358)
 * I’m not an expert of server configuration, so I can’t help any more. Sorry!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can pictures actually slow down your website?](https://wordpress.org/support/topic/can-pictures-actually-slow-down-your-website/)
 *  [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/can-pictures-actually-slow-down-your-website/#post-7720082)
 * Pictures can slow down a website , as said above.
 * You should resize your images with GIMP o Photoshop, before uploading.
 * I usually scale the images to the exact size I need them, with a quality of 60-
   70, progressive.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 4.6 has caused significant issues.](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/)
 *  [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/page/2/#post-7676448)
 * The “.htaccess” file is in the root of your site: you can access and modify it
   using an FTP Client or the File Manager of your hosting service.
 * The code I posted before should fix the issue.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 4.6 has caused significant issues.](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/)
 *  [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/#post-7676439)
 * I found the solution (at least, for me)!
 * It was an Expire Headers issue. The Nginx directive was bad.
 * This is the old directive:
 *     ```
       expires 24d;
       ```
   
 * and this is the new one:
 *     ```
       location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
       	expires 24d;
       }
       ```
   
 * which tells the browser to cache only the files with the specified extensions.
 * If you are using only Apache, without Nginx, adding the following line to your“.
   htaccess” file should solve the issue, but I didn’t test it:
 *     ```
       #Expire Header
       <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css)$">
       ExpiresDefault "access plus 24 days"
       </FilesMatch>
       ```
   
 * If the website is not showing, just remove the lines.
 * Hope it helps!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 4.6 has caused significant issues.](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/)
 *  [Pacicio](https://wordpress.org/support/users/pacicio/)
 * (@pacicio)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wordpress-46-has-caused-significant-issues/#post-7676431)
 * Similar problem for me.
 * In various sites, I need to refresh the page to see the changes made. Even in
   development sites which don’t have any caching plugin.
 * Running on PHP 7.0.9, ‪CentOS 6.6.

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/pacicio/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/pacicio/replies/page/2/?output_format=md)