Title: fredcy's Replies | WordPress.org

---

# fredcy

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gallery Custom Links] PHP warnings about constants already defined in simple_html_dom.php](https://wordpress.org/support/topic/php-warnings-about-constants-already-defined-in-simple_html_dom-php/)
 *  Thread Starter [fredcy](https://wordpress.org/support/users/fredcy/)
 * (@fredcy)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/php-warnings-about-constants-already-defined-in-simple_html_dom-php/#post-17983897)
 *     ```wp-block-code
       diff -r 41f4483514f9 -r a6190364678e wp-content/plugins/gallery-custom-links/vendor/kub-at/php-simple-html-dom-parser/src/KubAT/PhpSimple/lib/simple_html_dom.php--- a/wp-content/plugins/gallery-custom-links/vendor/kub-at/php-simple-html-dom-parser/src/KubAT/PhpSimple/lib/simple_html_dom.php      Thu Aug 29 14:13:38 2024 -0500+++ b/wp-content/plugins/gallery-custom-links/vendor/kub-at/php-simple-html-dom-parser/src/KubAT/PhpSimple/lib/simple_html_dom.php      Thu Aug 29 14:45:08 2024 -0500@@ -23,29 +23,29 @@  * Version Rev. 1.9.1 (291)  */-define('HDOM_TYPE_ELEMENT', 1);-define('HDOM_TYPE_COMMENT', 2);-define('HDOM_TYPE_TEXT', 3);-define('HDOM_TYPE_ENDTAG', 4);-define('HDOM_TYPE_ROOT', 5);-define('HDOM_TYPE_UNKNOWN', 6);-define('HDOM_QUOTE_DOUBLE', 0);-define('HDOM_QUOTE_SINGLE', 1);-define('HDOM_QUOTE_NO', 3);-define('HDOM_INFO_BEGIN', 0);-define('HDOM_INFO_END', 1);-define('HDOM_INFO_QUOTE', 2);-define('HDOM_INFO_SPACE', 3);-define('HDOM_INFO_TEXT', 4);-define('HDOM_INFO_INNER', 5);-define('HDOM_INFO_OUTER', 6);-define('HDOM_INFO_ENDSPACE', 7);+defined('HDOM_TYPE_ELEMENT') || define('HDOM_TYPE_ELEMENT', 1);+defined('HDOM_TYPE_COMMENT') || define('HDOM_TYPE_COMMENT', 2);+defined('HDOM_TYPE_TEXT') || define('HDOM_TYPE_TEXT', 3);+defined('HDOM_TYPE_ENDTAG') || define('HDOM_TYPE_ENDTAG', 4);+defined('HDOM_TYPE_ROOT') || define('HDOM_TYPE_ROOT', 5);+defined('HDOM_TYPE_UNKNOWN') || define('HDOM_TYPE_UNKNOWN', 6);+defined('HDOM_QUOTE_DOUBLE') || define('HDOM_QUOTE_DOUBLE', 0);+defined('HDOM_QUOTE_SINGLE') || define('HDOM_QUOTE_SINGLE', 1);+defined('HDOM_QUOTE_NO') || define('HDOM_QUOTE_NO', 3);+defined('HDOM_INFO_BEGIN') || define('HDOM_INFO_BEGIN', 0);+defined('HDOM_INFO_END') || define('HDOM_INFO_END', 1);+defined('HDOM_INFO_QUOTE') || define('HDOM_INFO_QUOTE', 2);+defined('HDOM_INFO_SPACE') || define('HDOM_INFO_SPACE', 3);+defined('HDOM_INFO_TEXT') || define('HDOM_INFO_TEXT', 4);+defined('HDOM_INFO_INNER') || define('HDOM_INFO_INNER', 5);+defined('HDOM_INFO_OUTER') || define('HDOM_INFO_OUTER', 6);+defined('HDOM_INFO_ENDSPACE') || define('HDOM_INFO_ENDSPACE', 7); defined('DEFAULT_TARGET_CHARSET') || define('DEFAULT_TARGET_CHARSET', 'UTF-8'); defined('DEFAULT_BR_TEXT') || define('DEFAULT_BR_TEXT', "\r\n"); defined('DEFAULT_SPAN_TEXT') || define('DEFAULT_SPAN_TEXT', ' '); defined('MAX_FILE_SIZE') || define('MAX_FILE_SIZE', 600000);-define('HDOM_SMARTY_AS_TEXT', 1);+defined('HDOM_SMARTY_AS_TEXT') || define('HDOM_SMARTY_AS_TEXT', 1); function file_get_html(        $url,
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Gallery Custom Links] PHP warnings about constants already defined in simple_html_dom.php](https://wordpress.org/support/topic/php-warnings-about-constants-already-defined-in-simple_html_dom-php/)
 *  Thread Starter [fredcy](https://wordpress.org/support/users/fredcy/)
 * (@fredcy)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/php-warnings-about-constants-already-defined-in-simple_html_dom-php/#post-17983865)
 * This is still happening in version 2.2.0 of the plugin, causing many spurious
   output lines in the Apache error log.
 * A workable solution, as used by other plugins, is to conditionally define the
   constants like this:
 * `defined('HDOM_TYPE_ELEMENT') || define('HDOM_TYPE_ELEMENT', 1);`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Arconix Shortcodes] Cron reschedule event error for hook: shortcodes_ts_tracker_send_event](https://wordpress.org/support/topic/cron-reschedule-event-error-for-hook-shortcodes_ts_tracker_send_event/)
 *  Thread Starter [fredcy](https://wordpress.org/support/users/fredcy/)
 * (@fredcy)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/cron-reschedule-event-error-for-hook-shortcodes_ts_tracker_send_event/#post-17457516)
 * When I use the `wp` command line tool to list cron schedules (`wp cron schedule
   list`) the “once_in_week” schedule does not appear in the output. This is further
   evidence that this plugin is not creating that cron schedule correctly.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[The Events Calendar] WordPress database error Unknown column ‘wp_tec_occurrences.start_date_utc’ ..](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-wp_tec_occurrences-start_date_utc/)
 *  [fredcy](https://wordpress.org/support/users/fredcy/)
 * (@fredcy)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/wordpress-database-error-unknown-column-wp_tec_occurrences-start_date_utc/#post-17017132)
 * I’m seeing errors of the same shape reported here. I note that the `wp_tec_occurrences`
   table is not mentioned in the FROM and JOIN clauses of the query, so it’s no 
   wonder that the query is invalid.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] use apache config file rather than .htaccess](https://wordpress.org/support/topic/use-apache-config-file-rather-than-htaccess/)
 *  Thread Starter [fredcy](https://wordpress.org/support/users/fredcy/)
 * (@fredcy)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/use-apache-config-file-rather-than-htaccess/#post-16256398)
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Visualizer – Tables & Charts Manager with Built-in AI Generator] PHP errors about ftp_pwd and ftp_nlist in PHP 7.4](https://wordpress.org/support/topic/php-errors-about-ftp_pwd-and-ftp_nlist-in-php-7-4/)
 *  Thread Starter [fredcy](https://wordpress.org/support/users/fredcy/)
 * (@fredcy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-about-ftp_pwd-and-ftp_nlist-in-php-7-4/#post-15473619)
 * Visualizer hooks into the wordpress framework, so of course part of the stack
   is going to involve standard wordpress functions; and so that does not absolve
   Visualizer as being the culprit here. The bottom line is that that whether the
   errors appear or not correlates exactly with Visualizer being being enabled or
   not.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Visualizer – Tables & Charts Manager with Built-in AI Generator] PHP errors about ftp_pwd and ftp_nlist in PHP 7.4](https://wordpress.org/support/topic/php-errors-about-ftp_pwd-and-ftp_nlist-in-php-7-4/)
 *  Thread Starter [fredcy](https://wordpress.org/support/users/fredcy/)
 * (@fredcy)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-about-ftp_pwd-and-ftp_nlist-in-php-7-4/#post-15470246)
 * The top (most recently called) of the call stack at the point of the error looks
   like this:
    1. wp/wp-admin/includes/class-wp-filesystem-ftpext.php ‘451
    2. wp/wp-admin/includes/class-wp-filesystem-ftpext.php ‘423
    3. wp/wp-admin/includes/class-wp-filesystem-base.php ‘229
    4. wp/wp-admin/includes/class-wp-filesystem-base.php ’76
    5. wp-content/plugins/visualizer/classes/Visualizer/Module.php ‘524

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