wyclef
Forum Replies Created
-
Forum: Plugins
In reply to: [IP Location Block] Local database settings failed to copyThanks for confirming @palmerct this describes the situation precisely.
Forum: Developing with WordPress
In reply to: Allow one Editor user access to 1-2 pluginsThanks for this info! I wasn’t aware of the Pro version.
Good to know. Thanks. They seem to be someone minimal in use in what I am working on but I will definitely keep this in mind moving forward and try to address it as I go.
Forum: Developing with WordPress
In reply to: Why isn’t JS file being loaded?Thanks for the info. I just ended up needing a simple add action line.
Forum: Developing with WordPress
In reply to: Why isn’t JS file being loaded?I see. Let me expand upon this code a bit to see if you might be able to shed some more light on what is going on here. The first chunk of code is from an older build and works, the second chunk is from a newer build and does not work, specifically in regard to the metajs /admin/init.js portion. I realize, more context would probably be better, however this is an isolated issue where I can copy the jq_scripts chunk of code from the working one, into the one that isn’t working, and then my problem is solved but am trying to understand what they were trying to do by taking it out in the first place, and how to possibly solve it more simply. Not sure if this is entirely doable without more understanding of the what’s and the why’s but figure I’d put this out here for starters. Thanks for your time.
works
if (is_admin() ){ function admin_scripts(){ wp_register_script('metajs', INDEX_JS .'/admin/init.js', array('jquery','media-upload','thickbox')); wp_enqueue_script('metajs'); } } if(!is_admin()) { add_action('wp_enqueue_scripts', 'jq_scripts'); } function jq_scripts(){ wp_deregister_script('jquery'); wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js", false); wp_enqueue_script('jquery'); } add_action('admin_enqueue_scripts', 'admin_scripts');Not Working
if (is_admin() ){ function admin_scripts(){ wp_register_script('metajs', INDEX_JS .'/admin/init.js', array('jquery','media-upload','thickbox')); wp_enqueue_script('metajs'); } } if (!is_admin() ){ function front_scripts(){ global $smof_data, $theme_options; $theme_data = wp_get_theme(); wp_enqueue_script('jquery'); wp_register_script('Init', INDEX_JS. '/init.js' ,array('jquery'), TRUE); wp_register_script('QueryLoader', INDEX_JS .'/jquery.queryloader2.js', array('jquery'), true); wp_register_script('scripts', INDEX_JS .'/scripts.js', array('jquery'), true); wp_register_script('shortcodes', INDEX_JS .'/shortcodes.js', array('jquery'), true); wp_enqueue_script('QueryLoader'); wp_enqueue_script('Init'); wp_enqueue_script('scripts'); wp_enqueue_script('shortcodes'); } add_action('wp_footer', 'front_scripts');- This reply was modified 5 years, 1 month ago by wyclef.
This is from the server error log after pressing save.
[Sat Feb 13 16:30:36.538457 2021] [cgi:error] [pid 19206:tid 4107689264896] [client 00.00.00.000:44420] AH01215: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/user/MYDOMAIN.org/wp-includes/kses.php on line 895: /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/ [Sat Feb 13 16:30:36.539193 2021] [cgi:error] [pid 19206:tid 4107689264896] [client 00.00.00.000:44420] AH01215: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/user/MYDOMAIN.org/wp-includes/kses.php on line 895: /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/ [Sat Feb 13 16:32:11.205786 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: PHP Fatal error: Uncaught Error: Call to undefined function _sanitize_text_fields() in /home/user/MYDOMAIN.org/wp-content/plugins/wp-cerber/common.php:804: /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.205968 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: Stack trace:: /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.206212 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #0 [internal function]: {closure}('1', 'botscomm'): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.206720 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #1 /home/user/MYDOMAIN.org/wp-content/plugins/wp-cerber/common.php(805): array_walk_recursive(Array, Object(Closure)): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.207210 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #2 /home/user/MYDOMAIN.org/wp-content/plugins/wp-cerber/admin/cerber-settings.php(1118): crb_sanitize_deep(Array): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.207692 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #3 /home/user/MYDOMAIN.org/wp-content/plugins/wp-cerber/admin/cerber-settings.php(74): cerber_settings_update(): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.208185 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #4 /home/user/MYDOMAIN.org/wp-content/plugins/wp-cerber/admin/cerber-settings.php(42): cerber_admin_init(): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.208505 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #5 /home/user/MYDOMAIN.org/wp-includes/plugin.php(524): {closure}(''): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.208881 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #6 /home/user/MYDOMAIN.org/wp-admin/admin.php(154): do_action('admin_init'): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.209283 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #7 /home/user/MYDOMAIN.org/wp-admin/options.php(19): require_once('/home/user...'): /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.209340 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: #8 {main}: /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptcha [Sat Feb 13 16:32:11.209729 2021] [cgi:error] [pid 21370:tid 4108051662592] [client 00.00.00.000:43667] AH01215: thrown in /home/user/MYDOMAIN.org/wp-content/plugins/wp-cerber/common.php on line 804: /dh/cgi-system/php72.cgi, referer: https://www.MYDOMAIN.org/wp-admin/admin.php?page=cerber-recaptchaForum: Everything else WordPress
In reply to: How to handle EOL Web Sites/WordPressThx for the info guys. HTTrack seems very interesting in addition to some of these other options. Might try to see if I can get HTTrack setup in wineskin on mac. Seem to remember using it many years ago for a site.
Forum: Everything else WordPress
In reply to: How to handle EOL Web Sites/WordPressWhat if it isn’t your site? Not up to you? Just walk away?
- This reply was modified 5 years, 3 months ago by wyclef.
Forum: Fixing WordPress
In reply to: What is this script in wp_footer? Can I remove it and how?Hey, commenting out
<?php wp_footer(); ?>makes it so the admin bar isn’t visible in when logged into admin area and visiting site. Is this normal?Forum: Fixing WordPress
In reply to: Upgrading to PHP 7.2 breaking this function. How can I fix?Oh nice, Thanks! PHP 7 won’t do split anymore?
Forum: Fixing WordPress
In reply to: Switching from HTTP to HTTPS / Post Switch ConcernsThanks. I’ll check this out. Already have a couple of sites running with Cloudflare.
Forum: Fixing WordPress
In reply to: What is this script in wp_footer? Can I remove it and how?So far I’ve just commented it out. Will kind of just give it some time to see if anything breaks. Can’t put a lot into this one at this time.
Forum: Fixing WordPress
In reply to: What is this script in wp_footer? Can I remove it and how?Talking about whatever
<?php wp_footer(); ?>calls. Not footer.php. I can try and comment it out, probably would take weeks or months for the client to complain about something not working for me to figure out what is has to do with if anything.- This reply was modified 6 years, 5 months ago by wyclef.
Well, upon looking into this further it looks like the ?php I am finding in the DB relates to Advanced Custom Fields repeater code, where I have a PHP file that is calling the ACF repeater function, and in that file is a little <?php. So I am not seeing anything inside any of the text fields in the admin area I think. I am not entirely sure how the ACF plugin works but is it possible it pulls in the generated repeater info in some cached sort of way into the DB? Sorry if all that sounds really dumb I simply don’t know. I may try to deactivate that PHP Execution plugin and see if I can spot any problems. Just have this feeling it isn’t in use but don’t really know.