Risultati della ricerca per 'Wordpress error message'
-
-
Ho una versione staging del mio sito, dove sto testando la versione 6.7 di wp. Ricevo questi errori, qualcuno mi può aiutare?
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
ultimate-memberdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/gialloec/staging.gialloecucina.com/wp-includes/functions.php on line 6114Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
um-recaptchadomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/gialloec/staging.gialloecucina.com/wp-includes/functions.php on line 6114Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
um-terms-conditionsdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/gialloec/staging.gialloecucina.com/wp-includes/functions.php on line 6114Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the
dynamic-visibility-for-elementordomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/gialloec/staging.gialloecucina.com/wp-includes/functions.php on line 6114La pagina su cui ho bisogno di aiuto: [devi essere connesso per vedere il link]
-
Buongiorno,
da un momento all’altro la richiesta API per esportare gli ordini da errore di server :
{‘code’: ‘internal_server_error’, ‘message’: ‘
Si è verificato un errore critico sul tuo sito web.
Scopri di più riguardo la risoluzione dei problemi in WordPress.
‘, ‘data’: {‘status’: 500}, ‘additional_errors’: []}
mentre tutte le altre funzionano correttamente.
Qualcuno ha lo stesso problema o sa da cosa possa dipendere?
-
Ciao a tutti,
dopo i due più recenti aggiornamenti di wordpress non mi funziona più un plugin che genera post di una determinata categoria derivante dalla compilazione di moduli di CF7.
L’ho controllato e ricontrollato eppure niente da fare, con il debug di wordpress mi esce il seguente errore:Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “add_author_support_to_posts” not found or invalid function name in /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/class-wp-hook.php:324
Stack trace: 0 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 1 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 2 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-settings.php(643): do_action() 3 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-config.php(82): require_once(‘…’) 4 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-load.php(50): require_once(‘…’) 5 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-blog-header.php(13): require_once(‘…’) 6 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/index.php(17): require(‘…’) 7 {main} thrown in /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/class-wp-hook.php on line 324
Questo di seguito alla fine è il codice php del plugin, so che è lunghetto ma se qualcuno gentilmente mi aiuta a trovar l’errore gliene sarei molto grato.
Grazie infinite
Enrico<?php if (!defined('ABSPATH')) { exit; } /** * Our main plugin class */ class CF7_To_WP { /** * The single instance of cf7_to_wp. * @var object */ private static $_instance = null; /** * Settings class object * @var object */ public $settings = null; /** * The version number. * @var string */ public $_version; /** * The token. * @var string */ public $_token; /** * The main plugin file. * @var string */ public $file; /** * The main plugin directory. * @var string */ public $dir; /** * The plugin assets directory. * @var string */ public $assets_dir; /** * The plugin assets URL. * @var string */ public $assets_url; /** * Our post type slug. * * @var string */ private $post_type = 'cf7_form_messages'; /** * Constructor function. * @access public */ public function __construct($file = '', $version = '0.1') { $this->_version = $version; $this->_token = 'cf7_to_wp'; // Load plugin environment variables $this->file = $file; $this->dir = dirname($this->file); $this->assets_dir = trailingslashit($this->dir) . 'assets'; $this->assets_url = esc_url(trailingslashit(plugins_url('/assets/', $this->file))); // Handle localization $this->load_plugin_textdomain(); add_action('init', array($this, 'load_localization'), 0); } /** * Initialize all the things! */ public function init() { // Register Messages post type. add_action('init', array($this, 'register_form_msg_post_type')); add_filter('add_menu_classes', array($this, 'menu_msg_form_bubble')); add_filter('post_row_actions', array($this, 'action_row_for_msg_posts'), 10, 2); add_action('admin_init', [$this, 'maybe_mark_form_message_as_read']); add_filter('wpcf7_verify_nonce', '__return_true'); // Hook into CF7 actions. add_filter('wpcf7_editor_panels', array($this, 'add_cf7_panel')); add_action('wpcf7_after_save', array($this, 'save_cf7_data'), 50, 1); add_action('wpcf7_mail_sent', array($this, 'create_post_on_form_submission'), 50, 1); add_action('wpcf7_mail_failed', array($this, 'create_post_on_form_submission'), 50, 1); add_action('init', 'add_author_support_to_posts'); add_filter('wpcf7_verify_nonce', '__return_true'); } /** * Load plugin localisation */ public function load_localization() { load_plugin_textdomain('cf7_to_wp', false, dirname(plugin_basename($this->file)) . '/lang/'); } /** * Load plugin textdomain */ public function load_plugin_textdomain() { $domain = 'cf7_to_wp'; $locale = apply_filters('plugin_locale', get_locale(), $domain); load_textdomain($domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo'); load_plugin_textdomain($domain, false, dirname(plugin_basename($this->file)) . '/lang/'); } /** * Register our post type to store messages. */ public function register_form_msg_post_type() { register_post_type( $this->post_type, array( 'labels' => array( 'name' => __('Pratiche', 'cf7_to_wp'), 'singular_name' => __('Pratica', 'cf7_to_wp'), 'add_new' => __('Aggiungi nuova', 'cf7_to_wp'), 'add_new_item' => __('Aggiungi nuova pratica', 'cf7_to_wp'), 'edit' => __('Modifica', 'cf7_to_wp'), ), 'description' => 'Pratiche e Servizi', 'has_archive' => true, 'publicly_queryable' => true, 'capability_type' => 'post', 'menu_position' => 32, 'show_ui' => true, 'show_in_menu' => true, 'public' => true, 'query_var' => true, 'menu_icon' => 'dashicons-buddicons-pm', 'taxonomies' => array('category'), 'supports' => array( 'author', 'title', 'category', 'editor', 'excerpt', 'trackbacks', 'page-attributes', 'custom-fields', 'thumbnail', 'sticky', ), ) ); } /** * Add bubble to admin menu * * @param array $menu * @return array $menu */ public function menu_msg_form_bubble($menu) { $form_messages_count = wp_count_posts($this->post_type); $pending_count = $form_messages_count->draft + $form_messages_count->pending; foreach ($menu as $menu_key => $menu_data) { if ("edit.php?post_type={$this->post_type}" !== $menu_data[2]) { continue; } $menu[$menu_key][0] .= " <span class='update-plugins count-$pending_count'><span class='plugin-count'>" . number_format_i18n($pending_count) . '</span></span>'; } return $menu; } /** * Add "Mark as read" action for our post type * * @param array $actions * @param WP_Post $post * @return array $actions */ public function action_row_for_msg_posts($actions, $post) { if ($post->post_type === $this->post_type && $post->post_status !== 'publish') { $actions['mark_as_read'] = sprintf( '<a href="%s" class="aria-button-if-js" aria-label="%s">%s</a>', wp_nonce_url("edit.php?post_type={$this->post_type}&action=mark_as_read&message_id={$post->ID}", "mark_message_as_read_{$post->ID}"), esc_attr(__('Mark as read', 'cf7_to_wp')), __('Mark as read', 'cf7_to_wp') ); } return $actions; } /** * Mark form message as read */ public function maybe_mark_form_message_as_read() { if (isset($_GET['action']) && $_GET['action'] == 'mark_as_read' && isset($_GET['message_id'])) { $message_id = (int) $_GET['message_id']; if (isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], "mark_message_as_read_{$message_id}")) { $updated_post = wp_update_post( array( 'ID' => $message_id, 'post_status' => 'publish', ) ); wp_redirect(wp_get_referer()); exit(); } } } /** * Add new panel to CF7 form settings * * @param array $panels * @return array */ public function add_cf7_panel($panels) { $panels['cf7-to-wp'] = array( 'title' => __('Salva messaggi', 'cf7_to_wp'), 'callback' => array($this, 'cf7_to_wp_form_metabox'), ); return $panels; } /** * Output the content of our panel/metabox * * @param WPCF7_ContactForm $post CF7 object */ public function cf7_to_wp_form_metabox($post) { $id = $post->id(); $cf7towp = get_post_meta($id, '_cf7towp', true); $cf7towp = wp_parse_args( $cf7towp, array( 'active' => 0, 'title' => '', 'content' => '', 'category' => 0, ) );?> <p style="margin-bottom:1em; font-size:1.25em;"> <?php _e('Abilitando la casella sottostante ogni modulo inviato compilato verrà pubblicato come nuovo articolo "Pratiche" privato.', 'cf7_to_wp');?> </p> <div class="mail-field" style="margin-bottom:1em;"> <label for="cf7towp-active"> <input type="checkbox" id="cf7towp-active" name="wpcf7-cf7towp-active" value="1" <?php checked($cf7towp['active'], 1);?> /> <strong><?php echo esc_html(__('Salvare i moduli compilati come articoli "Pratiche"?', 'cf7_to_wp')); ?></strong> </label> </div> <div class="pseudo-hr"></div> <div class="mail-field"> <p class="description"> <label for="cf7towp-category"><?php echo esc_html(__('Categoria dell\'articolo', 'cf7_to_wp')); ?></label> <select id="cf7towp-category" name="wpcf7-cf7towp-category"> <?php $this->get_category_options($id)?> </select> </p> </div> <div class="mail-field"> <p class="description"> <label for="cf7towp-title"><?php echo esc_html(__('Titolo dell\'articolo', 'cf7_to_wp')); ?></label> <input type="text" id="cf7towp-title" name="wpcf7-cf7towp-title" class="large-text" value="<?php echo esc_attr($cf7towp['title']); ?>" /> </p> </div> <div class="mail-field"> <p class="description"> <label for="cf7towp-content"><?php echo esc_html(__('Contenuto dell\'articolo', 'cf7_to_wp')); ?></label> <textarea id="cf7towp-content" name="wpcf7-cf7towp-content" cols="100" rows="10" class="large-text"><?php echo esc_attr($cf7towp['content']); ?></textarea> </p> </div> <hr> <p class="description" style="margin-top:.5em;"> <span style="float:left; width:60%;"> <?php _e('Usa i classici CF7 [mail-tag] per i contenuti dinamici nel titolo e nel contenuto (li trovi sulla tab Mail).', 'cf7_to_wp');?> </span> <span style="text-align:right; float:right; width:40%;"> <?php $credits_link = '<a target="_blank" href="https://github.com/psaikali/contact-form-to-wp-posts">Fonte</a>'; printf(__('A Contact Form 7 addon by %1$s', 'cf7_to_wp'), $credits_link); ?> </span> </p> <hr> <?php } /** * Get category field data */ public function get_category_options($id) { $cf7towp = get_post_meta($id, '_cf7towp', true); $cf7towp = wp_parse_args( $cf7towp, array( 'active' => 0, 'title' => '', 'content' => '', 'category' => 0, ) ); $args = array( 'taxonomy' => 'category', 'hide_empty' => false, ); $terms = get_terms($args); foreach ($terms as $term) { $options .= '<option value="' . $term->term_id . '" ' . selected($cf7towp['category'], $term->term_id, true) . '>' . $term->name . '</option>'; } echo $options; } /** * Save metabox/tab data when CF7 form settings page is saved. * * @param WPCF7_ContactForm $contact_form */ public function save_cf7_data($contact_form) { global $user_id; $user_id = get_current_user_id(); $id = $contact_form->id(); $cf7towp = array(); $cf7towp['active'] = (!empty($_POST['wpcf7-cf7towp-active'])); if (isset($_POST['wpcf7-cf7towp-title'])) { $cf7towp['title'] = sanitize_text_field($_POST['wpcf7-cf7towp-title']); } if (isset($_POST['wpcf7-cf7towp-content'])) { $cf7towp['content'] = wp_kses_post($_POST['wpcf7-cf7towp-content']); } if (isset($_POST['wpcf7-cf7towp-category'])) { $cf7towp['category'] = wp_kses_post($_POST['wpcf7-cf7towp-category']); } update_post_meta($id, '_cf7towp', $cf7towp); } /** * Create a Messages post when form is submitted * * @param WPCF7_ContactForm $contact_form */ public function get_current_user_id() { if (class_exists('Jwt_Auth_Public')) { $jwt = new \Jwt_Auth_Public('jwt-auth', '1.1.0'); $token = $jwt->validate_token(false); if (\is_wp_error($token)) { return false; } return $token->data->user->id; } else { return false; } } public function create_post_on_form_submission($contact_form) { $form_post = $contact_form->id(); $cf7towp_data = get_post_meta($form_post, '_cf7towp', true); if ($cf7towp_data['active'] === true) { $submission = WPCF7_Submission::get_instance(); if ($submission) { $meta = array(); $meta['ip'] = $submission->get_meta('remote_ip'); $meta['ua'] = $submission->get_meta('user_agent'); $meta['url'] = $submission->get_meta('url'); $meta['date'] = date_i18n(get_option('date_format'), $submission->get_meta('timestamp')); $meta['time'] = date_i18n(get_option('time_format'), $submission->get_meta('timestamp')); } $post_title_template = $cf7towp_data['title']; $post_content_template = $cf7towp_data['content']; $post_category[] = $cf7towp_data['category']; $post_title = wpcf7_mail_replace_tags( $post_title_template, array( 'html' => true, 'exclude_blank' => true, 'has_archive' => true, ) ); $post_content = wpcf7_mail_replace_tags( $post_content_template, array( 'html' => true, 'exclude_blank' => true, 'has_archive' => true, ) ); $new_form_msg = wp_insert_post( array( 'post_type' => $this->post_type, 'post_title' => $post_title, 'post_content' => $post_content, 'post_author' => $current_user -> ID, 'post_status' => 'private', 'has_archive' => true, 'post_category' => $post_category, ) ); if ($submission) { update_post_meta($new_form_msg, 'cf7towp_meta', $meta, ); } } } /** * Main cf7_to_wp singleton instance * * Ensures only one instance of cf7_to_wp is loaded or can be loaded. * * @static * @see cf7_to_wp() * @return Main cf7_to_wp instance */ public static function instance($file = '', $version = '0.1') { if (is_null(self::$_instance)) { self::$_instance = new self($file, $version); } return self::$_instance; } /** * Cloning is forbidden. * */ public function __clone() { _doing_it_wrong(__FUNCTION__, __('Cheatin’ huh?'), $this->_version); } /** * Unserializing instances of this class is forbidden. * */ public function __wakeup() { _doing_it_wrong(__FUNCTION__, __('Cheatin’ huh?'), $this->_version); } }
-
Buongiorno a tutti,
sto provando ad aggiornare alcune immagine che ho caricato via ftp e inserirle in Media come avevo fatto in passato. Utilizzo entrambi i plugin in oggetto ma entrambi mi danno errore, penso che sia memoria. Sia in wpconfig che in PHP ho già portato a 512M.
copio qui di seguito il log grazie mille!
2023-07-04 07:47:28Warning93.94.27.45AH01071: Got error ‘PHP message: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /var/www/vhosts/misterbilliard.com/httpdocs/wp-config.php on line 94’, referer: https://misterbilliard.com/wp-admin/upload.php?page=media-sync-pageApache error2023-07-04 07:47:29Warning93.94.27.45AH01071: Got error ‘PHP message: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /var/www/vhosts/misterbilliard.com/httpdocs/wp-config.php on line 94’, referer: https://misterbilliard.com/wp-admin/upload.php?page=media-sync-pageApache error2023-07-04 07:47:30Access93.94.27.45200POST /wp-admin/admin-ajax.php HTTP/2.044nginx SSL/TLS access2023-07-04 07:47:30Warning93.94.27.4512117#0: *1263564 FastCGI sent in stderr: “PHP message: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /var/www/vhosts/misterbilliard.com/httpdocs/wp-config.php on line 94” while reading response header from upstreamnginx error2023-07-04 07:47:33Error95.110.131.235499POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=9a9cc25980 HTTP/1.10nginx SSL/TLS access2023-07-04 07:47:33Error93.94.27.45500GET /wp-admin/upload.php?page=media-sync-page&scan_files=1 HTTP/2.0297nginx SSL/TLS access2023-07-04 07:47:33Warning93.94.27.4512117#0: *1263564 FastCGI sent in stderr: “PHP message: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /var/www/vhosts/misterbilliard.com/httpdocs/wp-config.php on line 94; PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in /var/www/vhosts/misterbilliard.com/httpdocs/wp-includes/class-wpdb.php on line 2431” while reading response header from upstreamnginx error2023-07-04 07:47:33Error93.94.27.4512117#0: *1263564 FastCGI sent in stderr: “; PHP message: WordPress database error Commands out of sync; you can’t run this command now for query SELECT option_value FROM MhNyT_options WHERE option_name = ‘jpsq_sync_checkout’ made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\Jetpack\Sync\Dedicated_Sender::spawn_sync, Automattic\Jetpack\Sync\Queue->is_locked, Automattic\Jetpack\Sync\Queue->get_checkout_id; PHP message: WordPress database error Commands out of sync; you can’t run this command now for query SELECT count(*) FROM MhNyT_options WHERE option_name LIKE ‘jpsq_sync-%’ made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\Jetpack\Sync\Dedicated_Sender::spawn_sync, Automattic\Jetpack\Sync\Queue->size; PHP message: WordPress database error Commands out of sync; you can’t run this command now for query SELECT option_value FROM MhNyT_options WHERE option_name = ‘jetpack_sync_full_status’ LIMIT 1 made by shutdown_action_hook, do_action(‘shutdown’), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_full_sync, Automattic\Jetpack\Sync\Modules\Full_Sync_Immediately->get_status, Jetpack_Options::get_raw_option” while reading upstreamnginx error2023-07-04 07:47:35Access93.94.27.45200POST /wp-json/wpml/tm/v1/ate/jobs/retry HTTP/1.01002Apache SSL/TLS access2023-07-04 07:47:36Access93.94.27.45200POST /wp-json/wpml/tm/v1/ate/jobs/sync HTTP/1.01.08 KApache SSL/TLS access2023-07-04 07:47:36Warning93.94.27.45AH01071: Got error ‘PHP message: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /var/www/vhosts/misterbilliard.com/httpdocs/wp-config.php on line 94’, referer: https://misterbilliard.com/wp-admin/upload.php?page=media-sync-pageApache error2023-07-04 07:47:37Warning93.94.27.45AH01071: Got error ‘PHP message: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /var/www/vhosts/misterbilliard.com/httpdocs/wp-config.php on line 94’, referer: https://misterbilliard.com/wp-admin/upload.php?page=media-sync-pageApache error2023-07-04 07:47:37Access93.94.27.45200POST /wp-admin/admin-ajax.php HTTP/2.044nginx SSL/TLS access2023-07-04 07:47:37Warning93.94.27.4512117#0: *1263564 FastCGI sent in stderr: “PHP message: PHP Warning: Constant WP_MEMORY_LIMIT already defined in /var/www/vhosts/misterbilliard.com/httpdocs/wp-config.php on line 94” while reading response header from upstreamnginx error2023-07-04 07:47:39Error95.110.131.235499POST /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=9a9cc25980 HTTP/1.10nginx SSL/TLS access
La pagina su cui ho bisogno di aiuto: [devi essere connesso per vedere il link]
-
Non riesco a fare un backup con Duplicator. Il processo arriva al 59.7% e poi si interrompe fornendomi i seguenti errori. Il plugin mi informa che il mio sito occupa 5GB mentre il DB 12MB.
Fase 1
Scansionando il sito
Attendi…
Mantieni questa finestra aperta durante il processo di scansione.
Potrebbero servire diversi minuti.
Fase 2
Compilazione pacchetto 59.7%
Attendi…
Tieni aperta questa finestra e non chiuderla durante il processo di creazione.
Il completamento dell’operazione potrebbe richiedere diversi minuti.
Fase 3
Si blocca a 59.7% per molto tempo.
Fase 4
Stato della compilazione
Compilazione interrotta dall’host
This server cannot complete the build due to host setup constraints, see the error message for more details.
If the error details are not specific consider the options below by clicking each section.******************************************************************************** DUPLICATOR-LITE PACKAGE-LOG: 5 February 2023 22:22 NOTICE: Do NOT post to public sites or forums ******************************************************************************** VERSION: 1.5.2.1 WORDPRESS: 5.9.5 PHP INFO: 5.6.40 | SAPI: cgi-fcgi SERVER: Apache PHP TIME LIMIT: (0) no time limit imposed PHP MAX MEMORY: 4294967296 (1024M default) MEMORY STACK: 81.25MB ******************************************************************************** DATABASE: ******************************************************************************** BUILD MODE: PHP(query limit - 100) MYSQLTIMEOUT: 5000 MYSQLDUMP: Not Supported TABLES: total:22 | filtered:0 | create:22 FILTERED: [] SQL CREATED: 20230205_xxxxxxxxxxx_af3938eced030e1d8652_20230205222046_database.sql SQL FILE SIZE: 9.74MB (10209995) SQL FILE TIME: 2023-02-05 22:22:05 SQL RUNTIME: 2.70 sec. ******************************************************************************** ARCHIVE (ZIP): ******************************************************************************** ARCHIVE DIR: /web/htdocs/www.nomeadominio.it/home ARCHIVE FILE: 20230205_xxxxxxxxxxx_af3938eced030e1d8652_20230205222046_archive.zip FILTERS: *OFF* DIRS: not set FILES: not set EXTS: not set ---------------------------------------- COMPRESSING SIZE: 5.06GB STATS: Dirs 2,677 | Files 29,397 SQL ADDED: 20230205_xxxxxxxxxxx_af3938eced030e1d8652_20230205222046_database.sql [PHP ERR][WARN] MSG:filesize(): stat failed for /web/htdocs/www.nomeadominio.it/home/ikkanews/----.mht [CODE:2|FILE:/web/htdocs/www.nomeadominio.it/home/wp-content/plugins/duplicator/classes/package/class.pack.archive.zip.php|LINE:172] do_action('wp_ajax_duplicator_package_build'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, duplicator_package_build, DUP_Package->runZipBuild, DUP_Archive->build, DUP_Zip::create, filesize, DUP_Handler::error, DUP_Handler::getMessage [PHP ERR][WARN] MSG:filesize(): stat failed for /web/htdocs/www.nomeadominio.it/home/----.mht [CODE:2|FILE:/web/htdocs/www.nomeadominio.it/home/wp-content/plugins/duplicator/classes/package/class.pack.archive.zip.php|LINE:172] do_action('wp_ajax_duplicator_package_build'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, duplicator_package_build, DUP_Package->runZipBuild, DUP_Archive->build, DUP_Zip::create, filesize, DUP_Handler::error, DUP_Handler::getMessage WARNING: Unable to zip files: FILE: [/web/htdocs/www.nomeadominio.it/home/ikkanews/----.mht] FILE: [/web/htdocs/www.nomeadominio.it/home/----.mht] ZipArchive Object ( [status] => 0 [statusSys] => 0 [numFiles] => 32072 [filename] => /web/htdocs/www.nomeadominio.it/home/wp-content/backups-dup-lite/tmp/20230205_xxxxxxxxxxx_af3938eced030e1d8652_20230205222046_archive.zip [comment] => ) FILE ADDED TO ZIP: 32071 COMPRESSION RESULT: '1' COMPRESSED SIZE: 4.25GB ARCHIVE RUNTIME: 436.76 sec. MEMORY STACK: 94.75MB building installer [PHP ERR][WARN] MSG:No valid encoded path found in value '' for ioncube.loader.encoded_paths. [CODE:2|FILE:Unknown|LINE:0] DUP_Handler::shutdown, DUP_Handler::error, DUP_Handler::getMessageIl mio hosting mi permette di editare i seguenti parametri (max_execution_time è già al massimo, memory_limit anche):
PHP 8.1 PHP 8.0 PHP 7.4 (obsoleta) PHP 7.3 (obsoleta) PHP 7.2 (obsoleta) PHP 7.1 (obsoleta) PHP 7.0 (obsoleta) PHP 5.6 (attualmente in uso ma obsoleta) PHP 5.5 (obsoleta) PHP 5.4 (obsoleta) PHP 5.3 (obsoleta) PHP 5.2 (obsoleta) PHP 4.4 (obsoleta) Nascondi versioni obsolete display_errors Off max_input_time 60 max_input_vars 1000 post_max_size 25M zlib.output_compression Off allow_url_fopen Off opcache.jit Off max_execution_time 900 memory_limit 1024M output_buffering 4096 upload_max_filesize 25M short_open_tag Off mysqli.allow_local_infile Off ioncube OffTogliendo quei file ottengo questo log:
******************************************************************************** DUPLICATOR-LITE PACKAGE-LOG: 5 February 2023 23:05 NOTICE: Do NOT post to public sites or forums ******************************************************************************** VERSION: 1.5.2.1 WORDPRESS: 5.9.5 PHP INFO: 5.6.40 | SAPI: cgi-fcgi SERVER: Apache PHP TIME LIMIT: (0) no time limit imposed PHP MAX MEMORY: 4294967296 (1024M default) MEMORY STACK: 80.75MB ******************************************************************************** DATABASE: ******************************************************************************** BUILD MODE: PHP(query limit - 100) MYSQLTIMEOUT: 5000 MYSQLDUMP: Not Supported TABLES: total:22 | filtered:0 | create:22 FILTERED: [] SQL CREATED: 20230205_xxxxxxxx_00bacebb0a0a153c8817_20230205230513_database.sql SQL FILE SIZE: 9.72MB (10189462) SQL FILE TIME: 2023-02-05 23:05:51 SQL RUNTIME: 2.35 sec. ******************************************************************************** ARCHIVE (ZIP): ******************************************************************************** ARCHIVE DIR: /web/htdocs/www.nomeadominio.it/home ARCHIVE FILE: 20230205_xxxxxxxx_00bacebb0a0a153c8817_20230205230513_archive.zip FILTERS: *OFF* DIRS: not set FILES: not set EXTS: not set ---------------------------------------- COMPRESSING SIZE: 5.06GB STATS: Dirs 2,676 | Files 29,395 SQL ADDED: 20230205_xxxxxxxx_00bacebb0a0a153c8817_20230205230513_database.sql ZipArchive Object ( [status] => 0 [statusSys] => 0 [numFiles] => 32071 [filename] => /web/htdocs/www.nomeadominio.it/home/wp-content/backups-dup-lite/tmp/20230205_xxxxxxxx_00bacebb0a0a153c8817_20230205230513_archive.zip [comment] => ) FILE ADDED TO ZIP: 32070
-
Ho creato un plugin custom per ospitare gli endpoint per la creazione di un processo di registrazione custom utilizzando dei tool di frontend come vue.js
Il plugin l’ho creato nella cartella wp-content/plugin/custom-api-memofly, l’ultima cartella l’ho creata io per ospitare lo script del mio plugin.
il codice contenuto nel mio script è il segunete:
<?php /** *Plugin Name: Custom API per Memofly *Plugin URI: https://memofly.it *Description: Plugin che tiene in piedi tutte le interazioni con il lato WordPress di Memofly verso altri moduli del sito * Es. le richieste di login e registrazione *Version: 1.0 * Author: Mirco Serra (Flyip) *Author URI: https://www.flyip.it/ */ add_action('rest-api-init', function (){ register_rest_route('custom/v1', '/register',array( 'methods' => 'POST', 'callback' => 'api_register_new_user', 'permission_callback' => function () { return true; } )); }); function api_register_new_user(WP_REST_Request $request): object { $response = (object)[] ; $body = $request.get_body(); $body = json_encode($body); $user = register_new_user(body['username'],$body['password']); if(! is_wp_error($user)){ $response->status = 200; $response->message = "OK"; $response->data->user_id = $user; }else{ $response->status = 501; $response->message = $user; $response->data->user_id = ""; } return $response; }Lo script non registra nessun endpoint in quanto quando vado a chiamarlo “https://memofly.it/wp-json/custom/v1/register” mi risponde con il seguente errore
{ "code": "rest_no_route", "message": "Nessun percorso fornisce una corrispondenza tra l'URL ed il metodo richiesto.", "data": { "status": 404 } }La pagina su cui ho bisogno di aiuto: [devi essere connesso per vedere il link]
-
Salve,
Attivando il plugin Cherry Projects, un plugin gratuito, il mio sito va offline e appare scritto:
Class Cherry5_Insert_Shortcode not exist!
Class Cherry_Interface_Builder not exist!
Class Cherry5_Insert_Shortcode not exist!
A critical error has occurred on your website. Check the site administrator’s inbox for instructions.Ho provato a disabilitare tutti i plugin, per impostare il tema WordPress predefinito Twenty Twenty-one come tema grafico. Ho provato a impostare la versione PHP su 7.3 invece di 7.4, che è quella attuale. Ma non sono riuscito a risolverlo.
“Site Health” (nel menu Strumenti) dice che non ci sono problemi con il sito.
Il supporto dell’autore del plugin Cherry Team non è disponibile.
Questo è il messaggio di errore del pannello dei plugin di WordPress:Cherry Projects plugin er la gestione di progetti per WordPress. Versione 1.2.15 | By: Cherry Team
This plugin did not load correctly and is paused during recovery mode An E_ERROR error was caused in line 110 of the file /var/www/vhosts/my-website.com/httpdocs/wp-content/plugins/cherry-projects/public/ includes / class-projects-shortcode.php. Error message: Uncaught Error: Call to undefined function cherry5_register_shortcode () in /var/www/vhosts/my-website.com/httpdocs/wp-content/plugins/cherry-projects/public/includes/class-projects-shortcode. php: 110 Stack trace: # 0 /var/www/vhosts/my-website.com/httpdocs/wp-includes/class-wp-hook.php(287): Cherry_Projects_Shortcode-> shortcode_registration () # 1 / var / www /vhosts/my-website.com/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook-> apply_filters () # 2Nel log dell’hosting risulta quanto segue:
500 GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP / 1.0 https://www.my-website.com/wp-admin/plugins.php Mozilla / 5.0 (Windows NT 10.0; Win64 ; x64) AppleWebKit / 537.36 (KHTML, like Gecko) Chrome / 88.0.4324.96 Safari / 537.36 3.43 K SSL / TLS Apache access
2021-01-31 11:01:24 Error 79.53.176.116 AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function cherry5_register_shortcode () in /var/www/vhosts/my-website.com/ httpdocs / wp-content / plugins / cherry-projects / public / includes / class-projects-shortcode.php: 110 \ nStack trace: \ n # 0 /var/www/vhosts/my-website.com/httpdocs/wp- includes / class-wp-hook.php (287): Cherry_Projects_Shortcode-> shortcode_registration () \ n # 1 /var/www/vhosts/my-website.com/httpdocs/wp-includes/class-wp-hook.php ( 311): WP_Hook-> apply_filters () \ n # 2 … ecc.Subito sotto, sempre nel log dell’hosting, c’è scritto anche questo:
400 GET /wp-admin/admin-ajax.php HTTP / 1.0 https://www.my-website.com/wp-login.php?action=entered_recovery_mode Mozilla / 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit / 537.36 (KHTML, like Gecko) Chrome / 88.0.4324.96 Safari / 537.36 478 SSL / TLS Apache access
2021-01-31 11:02:38 Error 79.53.176.116 AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function cherry5_register_shortcode () in /var/www/vhosts/my-website.com/ httpdocs / wp-content / plugins / cherry-projects / public / includes / class-projects-shortcode.php: 110 \ nStack trace: \ n # 0 /var/www/vhosts/my-website.com/httpdocs/wp- includes / class-wp-hook.php (287): Cherry_Projects_Shortcode-> shortcode_registration () \ n # 1 /var/www/vhosts/my-website.com/httpdocs/wp-includes/class-wp-hook.php ( 311): WP_Hook-> apply_filters () \ n # 2 … ecc.Grazie per l’aiuto!
La pagina su cui ho bisogno di aiuto: [devi essere connesso per vedere il link]
-
Hello, today I entered my page to update a product, but after clicking on update I received a fatal error message.
Since then I cannot access my control panel (not even with the recovery link that wordpress sent me) and the noritarte.it site is unreachable. The fatal error message appears:Fatal error: Uncaught RuntimeException: Error while saving action: INSERT command denied to user ‘noritart57355’@’2001:4b78:1001::1601’ for table ‘wp_actionscheduler_actions’ in /home/mhd-01/www.noritarte.it/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore. php:75 Stack trace: #0 /home/mhd-01/www.noritarte.it/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_DBStore->save_action(Object(ActionScheduler_Action)) #1 /home/mhd-01/www.noritarte. en/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/ActionScheduler_ActionFactory.php(105): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action)) #2 /home/mhd-01/www.noritarte.it/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/functions. php(54): ActionScheduler_ActionFactory->recurring(‘wc_facebook_reg…’, Array, 1608135888, 900, ‘facebook-for-wo…’) #3 /home/mhd-01/www.noritarte.it in /home/mhd-01/www.noritarte.it/htdocs/wp-content/plugins/woocommerce/packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php on line 75
What could have happened?
La pagina su cui ho bisogno di aiuto: [devi essere connesso per vedere il link]
-
Ciao a tutti,
volevo intanto darvi un saluto visto che è la prima volta che scrivo in questo forum.
Poi vorrei chiedervi supporto riguardo ad un problema che non riesco a risolvere da due giorni.Sto attualmente seguendo una guida online per lo sviluppo di temi custom e provando a replicare un passaggio che veniva riportato nella guida, ho notato che il codice utilizzato non funziona.
Entrando nello specifico, ho creato un tema child del tema twentytwenty solo per fare qualche prova ed ho inserito nel function.php del tema child il codice che segue e che dovrebbe inviare un’email ad un autore a cui viene pubblicato un articolo sul sito in questione. Evito di riportare i settaggi dell’SMTP che ho inserito su wp_config(), questo perché da quel punto di vista sembra funzionare tutto.
Il problema è che wp_mail() fa quello che gli chiedo solo se inserisco manualmente le stringhe per le proprietà $to, $subject e $message. Funziona anche se inserisco delle variabili che ho impostato inserendo valori manualmente, cioè senza recuperarli attraverso le funzioni di wordpress. Se provo a sostituirle con le variabili che ho creato appositamente e che recuperano i valori attraverso le funzioni di wordpress, wp_mail() non funziona.
Quando invia le e-mail attraverso l’inserimento manuale dell’indirizzo ($to) e lascio gli altri campi inalterati ($subject, $message), ho notato che le parti dinamiche del messaggio dell’email che ho previsto tramite sprintf() e relativi placeholder, non vengono riportate.
Ho testato i contenuti delle variabili attraverso un’altra funzione inserita nel function.php e richiamata alla fine del footer.php. Questa va semplicemente a stampare a video tramite echo i valori delle variabili in questione e l’output che restituisce sembra corretto.
Cosa non sto tenendo in considerazione o che errore sto facendo?
Di seguito il codice delle due funzioni che ho usato.
Confido nella vostra esperienza.
Vi ringrazio e per il momento vi mando un saluto.//Codice per l’invio di un’e-mail all’autore di un articolo che viene pubblicato
add_action( ‘publish_post’, ‘mycallback_notify_new_post’ );
function mycallback_notify_new_post( $post_ID ){
global $post;
$post_permalink = get_permalink( $post_ID );
$author_id = $post->post_author;
$author_email = get_the_author_meta( ‘user_email’, $author_id );
$author_name = get_the_author_meta( ‘display_name’, $author_id );
$to[] = sprintf( ‘%s <%s>’, $author_name, $author_email );
$subject = __( ‘Hei! Your post has been published’, ‘twentytwenty’ );
$message = sprintf( __( ‘Hi %s!’, ‘twentytwenty’ ), $author_name ) . “\r\n” .
__( ‘Your post is now online’, ‘twentytwenty’ ) . “\r\n” .
sprintf( __( ‘You can view it here: %s’, ‘twentytwenty’ ), $post_permalink ) . ‘.’;wp_mail( $to, $subject, $message);
}//Codice per controllare il contenuto delle variabili
add_action(‘cibsFunction’, ‘funzioneTest’);
function funzioneTest(){
echo ‘Ciao a tutti!’;
global $post;
$post_ID = $post->ID;
$author_id = $post->post_author;
$author_email = get_the_author_meta( ‘user_email’, $author_id );
$author_name = get_the_author_meta( ‘display_name’, $author_id );
$post_permalink = get_permalink( $post_ID );
echo gettype($author_email);
echo $author_email;
echo $author_name;
echo $author_id;
echo $post_ID;
$message = sprintf( __( ‘Hi %s! Your e-mail is %s’, ‘twentytwenty’ ), $author_name, $author_email ) . “\r\n” .
__( ‘Your post is now online’, ‘twentytwenty’ ) . “\r\n” .
sprintf( __( ‘You can view it here: %s’, ‘twentytwenty’ ), $post_permalink ) . ‘.’;echo $message;
}
`
-
ciao
di seguito i dati inserititab modulo:
<label> Il tuo nome (richiesto)
[text* your-name] </label>
<label> La tua email (richiesto)
[email* your-email] </label>
<label> Oggetto
[text your-subject] </label>
<label> Il tuo messaggio
[textarea your-message] </label>
[submit “Invia”]tab MAIL:
A: miamail@gmail.com (ho provato anche miamail@miodominio.com)
DA: mio nome <wordpress@miodominio.com> (mail wordpress creata a doc)
Oggetto: nome_sito “[your-subject]”
Additional headers: lasciato vuotoCorpo del messaggio:
Da: [your-name] <[your-email]>
Oggetto: [your-subject]Corpo del messaggio:
[your-message]_________________________________
tutte le altre tab non le ho toccate,
mailchimp è collegataQuando compilo il form nella pagina del sito (con qualsiasi campo io voglia inserire, bottone, check o altro) l’unico risultato che ho è sempre lo stesso
ricevo questo messaggio sotto il bottone invia
“SI E’ VERIFICATO UN ERRORE DURANTE L’INVIO DEL TUO MESSAGGIO. PER FAVORE RIPROVA DI NUOVO”Per favore potreste aiutarmi a capire perchè non funziona il plug-in CF7 e se devo configurare qualcosa… che cosa e come?
Hosting su ArubaGrazie in anticipo
__________________________
Hi, I have WP 5.4 installed yesterday. CF7 is not longer to works.
I filled the form fields but it doesn’t works. No email sent.
Under the button is wrote “this message is unable to be sent. try again later”I tried to use default message too but still have the same problem
Please support me to fix it asap
thanks in advance
-