K
K
Konstantin2019-09-27 21:41:25
css
Konstantin, 2019-09-27 21:41:25

Error when transferring a site to php, how to fix it?

Transferred the site from one host to another, an error occurred, the php versions are identical. On one host it works without errors, on the second there is a way to fix it? (I'm not a coder)
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'remove_jquery_migrate' not found or invalid function name in /var/www/u7800114/data/www/virilismed.ru/wp-includes/class -wp-hook.php on line 286
Site virilismed.ru Tried to
disable plugins (manually, the admin panel does not work due to an error) does not help, but if I disable the custom fields plugin, the whole site crashes.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey delphinpro, 2018-05-28
@NetSky

The Head-on option is two nested blocks to get four pseudo-elements. PEs are positioned under the main plate, transformed and given appropriate shadows via box-shadow.
A better option - at first glance, it seems you can get by with two PE, inclined rectangles. But we have to see how it turns out.
The worst option is to cut out the shadows with pictures.
UPD: An example of the second option https://codepen.io/delphinpro/pen/LrYbKb

F
forspamonly2, 2018-05-29
@forspamonly2

border-image: https://developer.mozilla.org/en-US/docs/Web/CSS/b...

K
Konstantin, 2019-09-27
@gradk

Additional errors occurred while activating debug mode on your site:
Warning: include(/var/www/u7800114/data/www/virilismed.ru/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /var/www/u7800114/data/www/virilismed.ru/wp-settings.php on line 95
Warning: include(/var/www/u7800114/data/www/virilismed.ru/wp-content/advanced- cache.php): failed to open stream: No such file or directory in /var/www/u7800114/data/www/virilismed.ru/wp-settings.php on line 95
Warning: include(): Failed opening '/var /www/u7800114/data/www/virilismed.ru/wp-content/advanced-cache.php' for inclusion (include_path='.:') in /var/www/u7800114/data/www/virilismed.ru/wp -settings.php on line 95
To solve them, commented out the line
define('WP_CACHE', true);
in the file ~/www/virilismed.ru/wp-config.php
In addition, the settings were moved in the same file
define('AUTOSAVE_INTERVAL', 300); // seconds
define('WP_POST_REVISIONS', false);
define('AUTOSAVE_INTERVAL', 300); // seconds
define('WP_POST_REVISIONS', 3);
above
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
In the file ~/www/virilismed.ru/wp-content/themes/virilis/header.php, the first line was removed:
<?php?>
The main problem was in the template file ./wp-content/themes/virilis/functions .php
add_action( 'wp_default_scripts', 'remove_jq_migrate' );
add_filter( 'wp_default_scripts', 'remove_jquery_migrate' );
Changed the lines to look like this:
add_action( 'wp_default_scripts', 'remove_jq_migrate' );
add_filter( 'wp_default_scripts', 'remove_jq_migrate' );
At the moment, we do not see any problems in the work of your site. Check, please.
On the old hosting, you might not see errors, as PHP error display might have been disabled on it. In this case, the site works correctly, however, there were errors in the code.

X
xmoonlight, 2019-09-27
@xmoonlight

Enable the version of PHP and those modules that worked on the old hosting (where the site was transferred from).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question