• Resuelto thumbtaki

    (@thumbtaki)


    Hola a todos,

    Tengo un problema grave, ya que la web me salen unos errores y además no me permite acceder al back office o wp-admin.

    La web me sale bajo del menú estos avisos, además algunas funcionalidades de la web han desaparecido, no todas:

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query_where() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query_groupby() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query_fields() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query_where() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query_groupby() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query_fields() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Warning: Parameter 2 to M_DataMapper::set_custom_wp_query() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 291

    Error thrown
    [] operator not supported for strings

    Y en el wp-admin me sale lo siguiente:

    Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 601

    Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /home/bicicle/public_html/wp-includes/plugin.php on line 601

    Warning: Cannot modify header information – headers already sent by (output started at /home/bicicle/public_html/wp-includes/plugin.php:601) in /home/bicicle/public_html/wp-login.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at /home/bicicle/public_html/wp-includes/plugin.php:601) in /home/bicicle/public_html/wp-login.php on line 403

    Warning: Illegal string offset ‘remember’ in /home/bicicle/public_html/wp-includes/user.php on line 41

    Warning: Cannot assign an empty string to a string offset in /home/bicicle/public_html/wp-includes/user.php on line 41

    Warning: Illegal string offset ‘user_login’ in /home/bicicle/public_html/wp-includes/user.php on line 56
    Error thrown

    Cannot create references to/from string offsets

    Qué tengo que hacer para solucionar este problema?

    • Este debate fue modificado hace 6 años, 8 meses por José Arcos. Razón: Mover al foro adecuado
Viendo 7 respuestas - de la 1 a la 7 (de un total de 7)
  • Moderador José Arcos

    (@josearcos)

    Hola @thumbtaki, parece que son errores relacionados con el plugin NextGEN Gallery, ¿tienes ese plugin instalado? Es posible que actualizando se eliminen los errores. De todas formas, al ser errores de Warning (Precaución) puedes seguir utilizando tu sitio sin problema. Solo tienes que ir a tu archivo wp-config.php en la raíz de tu sitio y desactivar el debug. Busca la línea
    define('WP_DEBUG', true)'
    y cámbiala por:
    define('WP_DEBUG', false)'

    Saludos.

    • Esta respuesta fue modificada hace 6 años, 8 meses por José Arcos.
    • Esta respuesta fue modificada hace 6 años, 8 meses por José Arcos.
    Iniciador del debate thumbtaki

    (@thumbtaki)

    Hola José,

    En primer lugar muchas gracias, sí que uso el plugin NextGen Gallery

    Creo que lo que quieres decir es que cambie:

    define(‘WP_DEBUG’, false)

    Por:

    define(‘WP_DEBUG’, true)

    Muchas Gracias,

    Un saludo,

    Moderador José Arcos

    (@josearcos)

    Hola @thumbtaki, ¿qué tienes ahora mismo en el wp-config?
    define('WP_DEBUG', true)'
    o
    define('WP_DEBUG', false)'

    Para que no aparezcan los errores tiene que estar a false. Lo mismo para los valores
    define('WP_DEBUG_DISPLAY', false)'
    define('WP_DEBUG_LOG', false)'

    Saludos

    Iniciador del debate thumbtaki

    (@thumbtaki)

    Hola jose,

    Lo tengo en false,

    <?php
    /**
     * The base configuration for WordPress
     *
     * The wp-config.php creation script uses this file during the
     * installation. You don't have to use the web site, you can
     * copy this file to "wp-config.php" and fill in the values.
     *
     * This file contains the following configurations:
     *
     * * MySQL settings
     * * Secret keys
     * * Database table prefix
     * * ABSPATH
     *
     * @link https://codex.wordpress.org/Editing_wp-config.php
     *
     * @package WordPress
     */
    
    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'xxxxx');
    
    /** MySQL database username */
    define('DB_USER', 'xxxxx');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'xxxxxx');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY',         'refgu0hn5xkbgz0khaxa6zt52zgphfimo5ub2v2riqvs8pjyuplvzicowitwxvrr');
    define('SECURE_AUTH_KEY',  'q7tfe2gyiwqvnrqqiuatn4jtzf1as1kmqnw0tug0pwqmul0ke5my3rwkmtihwkeb');
    define('LOGGED_IN_KEY',    'aisgqaxrd4iu5hlz8a9tjsba5uw67cwjdenuzmdzy1d09bgygin1pbf1qkf2r0nr');
    define('NONCE_KEY',        'm83ea1miqt7ibwn7fh1hh567ocurvofnbenqbhmbdkfbontj2281oqajhk0qrybw');
    define('AUTH_SALT',        'rsvmqhysoxzphoujcg4vreqfd0uz7df1xxgslyndjpkebvoguaetiswlds6s1xij');
    define('SECURE_AUTH_SALT', '9pn0kxjt2gjr2rr3zcocmrq1yswqi5l0pzmjyjizu3qrfkw8uedqrjpavrppksza');
    define('LOGGED_IN_SALT',   'tc9qm7jyueatks1yaytdtnriifbbhxhygk0frgluejvyuyp1rgxllzr4qrxvkotf');
    define('NONCE_SALT',       'regexlrf464rpeuika32cyuktdv6caghkpzvxmae9gjgdds20mc4wkhrdxnnlw8s');
    
    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each
     * a unique prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'xxxxx';
    
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     *
     * For information on other constants that can be used for debugging,
     * visit the Codex.
     *
     * @link https://codex.wordpress.org/Debugging_in_WordPress
     */
    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');
    • Esta respuesta fue modificada hace 6 años, 8 meses por LGrusin. Razón: Por razones de seguridad
    • Esta respuesta fue modificada hace 6 años, 8 meses por José Arcos.
    Moderador LGrusin

    (@lgrusin)

    Si no puedes entrar al escritorio puedes desactivar todos los plugins entrando por FTP (o el panel de control del hosting), y renombras la carpeta plugins. Con eso podrás entrar.

    Después vuelves a dejar la carpeta plugins con su nombre, deberían estar desactivados los plugins. Ve activando uno a uno menos el que causa el error.

    Por cierto, en cuanto puedas cambia las claves de la base de datos y WordPress

    Un saludo

    • Esta respuesta fue modificada hace 6 años, 8 meses por LGrusin.
    Iniciador del debate thumbtaki

    (@thumbtaki)

    Muchas gracias, voy a probar.

    Un saludo,

    Iniciador del debate thumbtaki

    (@thumbtaki)

    Muchas gracias a todos, ya tengo la web en marcha.

    Un saludo,

    Javier

Viendo 7 respuestas - de la 1 a la 7 (de un total de 7)
  • El debate ‘Error en el footer de la página y para entrar en el wp-admin’ está cerrado a nuevas respuestas.