I've just noticed that all of my checkboxes and radio buttons are missing labels on my drupal site admin menus. Not sure when this started (I've checked several backups, and it is present in all of them), but I'd like to find a solution.
I have tried disabling modules, but to no effect at the moment.
I've attached a screenshot
I have noticed a couple of PHP warnings pop up on a couple of pages - these are:
Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in /persistent/html/includes/bootstrap.inc on line 1606
and
Warning: in drupal_clean_css_id![enter image description here][1]entifier() (line 3731 of /persistent/html/includes/common.inc).
Warning: preg_match(): Compilation failed: unknown option bit(s) set at offset 0 in /persistent/html/includes/bootstrap.inc on line 1606
was the clue apparently.
PHP had recently been upgraded from 5.3.13 to 5.3.14, and this seemed to change the way in which preg_match is handled. Upgraded again to 5.3.15 and the problem was still there - so I downgraded to 5.3.13 and the problem was solved.
Found other instances of people getting a similar preg_match error on Wordpress which subversion php upgrades!
Related
I am trying to copy this sandbox. I copied everything and installed Konva, use-image and react-konva, but I got 2 errors. The first is that canvas is missing so I installed that. After the installation,I got this error:
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\User\Folder\node_modules\konva\lib\Core.js from C:\User\Folder\node_modules\react-konva\lib\ReactKonvaCore.js not supported.
I am using Next13.
The error itself happens in a weird sense. If I navigate to the page from any link it works, but if I refresh the page, I get the errors.
I recently upgraded from php 5 to 7.2 and my wp site didnt work, service temporarily unavailable error. So I logged into the backend and WP 5.4 was telling me I needed to check security issues of which I resolved 2 of 3 automatically but 1 could not which is "restrict access to files and folders". So I tried to update the 2017 theme and when I do so I get a bunch of these(although its the same error):
Selected items were updated with errors:
- Unable to update theme 'twentyseventeen_1.7_1_', details: PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
PHP Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168
Warning: chmod(): Operation not permitted in /var/www/vhosts/santiapps.com/httpdocs/wordpress_2/wp-admin/includes/class-wp-filesystem-direct.php on line 168...
and near the end it reads:
Warning: The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions. "front-page.php, rtl.css, 404.php...
Then in the end it doesnt update of course. A suggestion by the Wordpress Toolkit on plesk is:
Im using filezilla and changing the permissions to those files but I get "operation not permitted".
[SOLVED] (at least for me)
Me too on Cloudways and Digital Ocean.
Just restart the server and error is gone.
I have updated the version of wordpress, and my webpage has not been working all of a sudden.
I have debugged to see what the problem is, and I could not understand any of the explanation that is written. I have spent hours trying figure out what it meant, and still could not grasp what I have to change and add. Could someone please explain what it means, and what I must do in order to fix this? Is there an instruction written in the notice & error? I am sorry if I did not provide enough information, I am very new to coding and web page making :(
Notice: date.php is deprecated since version 5.3.0! Use
wp-includes/class-wp-date-query.php instead. in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/functions.php
on line 4719
Notice: class-oembed.php is deprecated since version 5.3.0! Use
wp-includes/class-wp-oembed.php instead. in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/functions.php
on line 4719
Notice: Undefined property: wpdb::$blog_versions in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/wp-db.php on
line 659
Warning: call_user_func_array() expects parameter 1 to be a valid
callback, function '_wp_add_additional_image_sizes' not found or
invalid function name in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php
on line 288
Fatal error: Uncaught Error: Class 'WP_Block_Styles_Registry' not
found in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script-loader.php:2899
Stack trace: #0
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(288):
enqueue_block_styles_assets('') #1
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(312):
WP_Hook->apply_filters(NULL, Array) #2
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/plugin.php(478):
WP_Hook->do_action(Array) #3
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script-loader.php(2853): do_action('enqueue_block_a...') #4
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(288):
wp_common_block_scripts_and_styles('') #5
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/class-wp-hook.php(312):
WP_Hook->apply_filters(NULL, Array) #6
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/plugin.php(478):
WP_Hook->do_action(Array) #7
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script- in
/home/vol10_1/epizy.com/epiz_24728949/htdocs/wp-includes/script-loader.php
on line 2899
There has been a critical error on your website.
Seems like the update went wrong and some files got corrupted.
You can try this to fix it:
Download a new Wordpress installation zip
https://wordpress.org/download/
Remove the folders wp-admin & wp-includes from your server
Reupload those folders from the fresh downloaded Wordpress zip
Note: this does not delete your site content, the content of your website is in the database and in the wp-content folder.
Your wordpress version 5.3 need php 7.4 version to be runned properly
so you need to upgrade your php version
or downgrade you wordpress version to 5.2 and disable wordpress auto update
// wp-configs.php
define( 'WP_AUTO_UPDATE_CORE', false );
PHP Version 7.2.18-1
WordPress 5.2.4
I am running 5 sites on same environment
you need to update your PHP version and use a stable WordPress version
I have WordPress installed on a MAMP server. After installing some plugins I suddenly got an 'Error 500' but only when my MacBook had wifi connected.
Turning the wifi off fixes the issue, but turning it back on or uploading to a live server causes the issue to return.
After looking through the PHP log, I got:
PHP Parse error: syntax error, unexpected '<', expecting end of file
in /private/var/tmp/theme_temp_setupGlYc25 on line 2
and:
PHP Warning: Use of undefined constant REQUEST_URI - assumed
'REQUEST_URI' (this will throw an Error in a future version of PHP)
in /Applications/MAMP/htdocs/wordpress/wp-
content/themes/THEME_NAME/functions.php on line 48
Uninstalling the plugins that I had recently installed did not fix the issue, nor did re-installing MAMP or moving the installation to a new localhost.
The error is from a WordPress plugin downloaded from an untrusted source.
On installing the plugin, it wrote a number of lines of code in the functions.php file within the theme I was using which was throwing the 'Error 500' as it tried to connect to a server at 'spekt.cc'.
By following the PHP log; googling the Parse error and PHP warning, I saw a post on Medium from someone saying a similar thing happened to them with WordPress attempting to connect to 'spekt.cc'.
Using 'ack' in Homebrew, I searched my WordPress directory and found the affected files. (It had been installed on all themes within the directory)
After removing this PHP code it had inserted and removing the affected plugin, my WordPress is working fine again.
I came back to my site after a long break and TADAH : Fatal error: Call to undefined function update_post_caches() in /home/web/cote-image/port2016/wp-includes/query.php on line 3818
You can see that on : http://lpb.cerealog.net/cote-image/port2016/.
Have you some answer to help me ?
I remove all the plugins for test but nothing
I think it was an update 4.6.1 to 4.6.3 but i don't have idea.
This issue is caused by W3 Total Cache plugin. You should disable and enable it again or better update it if it is not the latest version. If you still experience the problem try renaming or removing the w3-total-cache folder.
Here is more regarding this issue https://wordpress.org/support/topic/call-to-undefined-function-wp_cache_get/