admin-post.php results on white screen after form submission

This is a strange error because it wasn't happening earlier, it was actually all working fine. I have removed all the code I have added since I last tested it and it was working before it broke. I have a custom post acting as a page to submit a form on and I am processing the form via a function in the functions.php page in my plugin. function tm_add_new_job() { if ( empty($_POST) || !wp_verify_nonce($_POST['tm_add_new_job'],'tm_add_new_job') ) { wp_nonce_ays(); die(); } …
Category: Web

Using plugin functionality in external php script not working

I am encountering a strange problem which I couldn't solve so far. I'm calling a .php script via cronjob (Debian/GNU Linux). To use wordpress functionailty I added: define('WP_USE_THEMES', false); require( '/full/path/to/wp-blog-header.php' ); Now database queries and default wordpress functionality all works fine, but I also call some functions provided by a plugin (namely advanced custom fields, the problem however affects other plugins as well as I tested) the following php error is returned: PHP Fatal error: Call to undefined function …
Category: Web

Why would adding a template file to a child theme cause an error in template-loader.php?

Per wordpress best practices, I created a child theme for an existing theme I have. Everything works fine until I try to add a template file which follows WP's template hierarchy conventions. For example, if I add category.php or archive.php, I get a white screen of death, and this is the error I get in Apache: [:error] [pid 2919] [client 98.24.106.38:64974] PHP Warning: include(): Failed opening '/home/www-dev/beokinawa/wp-content/themes/x-child/index.php' for inclusion (include_path='.:/usr/share/php') in /home/www-dev/beokinawa/wp- includes/template-loader.php on line 74, referer: http://dev.bluepresley.com/beokinawa/wp-admin/edit-tags.php?taxonomy=category Whenever I …
Category: Web

New installation fatal error in 5.9.3 at edit or create entry

I just make a new download and installation of Wordpress. So far so good until I edit or create a new entry. Remove it works. Notice: Undefined property: WP_REST_Terms_Controller::$sql_clauses in /wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php on line 625 Warning: implode(): Invalid arguments passed in /wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php on line 625 Error en la base de datos de WordPress: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM ORDER BY …
Category: Web

Fatal Error Class 'WP_Widget_Pages' not found in /home/****/public_html/wp-includes/class-wp-widget-factory.php

So I am not well versed in wordpress and had this site built for a friend and it worked just fine for years. I tried to login to make some changes for him with /wp-admin and got the WSOD. I tried stopping all plugins, reverting to the standard theme and nothing worked. The website still works fine I just cant log in to it. So I turned on debuging through ftp and this is what I got. Stack trace: #0 …
Category: Web

Fatal error: Cannot declare class WP_User_Request, because the name is already in use?

Suddenly I am getting the following error on my website, I don't know why, these are the following errors shown on my website: 1)Fatal error: Cannot declare class WP_User_Request, because the name is already in use in /home/hnukt37ls4nt/public_html/wp-includes/user.php on line 3657 2)Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in /home/hnukt37ls4nt/public_html/wp-includes/formatting.php:4316 Stack trace: #0 /home/hnukt37ls4nt/public_html/wp-includes/class-wp-fatal-error-handler.php(190): esc_url('https://wordpre...') #1 /home/hnukt37ls4nt/public_html/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #2 /home/hnukt37ls4nt/public_html/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false) #3 [internal function]: WP_Fatal_Error_Handler->handle() #4 {main} thrown in /home/hnukt37ls4nt/public_html/wp-includes/formatting.php on line 4316 Please help me …
Category: Web

Importing demo data in Multisite

I have a multi-purpose theme, which allow to download complete demo site content/wordpress. Normally (www.example.com) it's perfect and run all demo request, last time i install a new wordpress multisite network and enabled as Network theme. Fatal error: Cannot use object of type WP_Error as array in /home1/user/public_html/example.com/wp-content/themes/mytheme/functions/importer/import.php on line 491 Line number 491 in import.php looks like this if( $response['response']['code'] == 401 ){ Here is complete block of php code from line number 489 to 511 <?php if( $test_error …
Category: Web

Fatal error: Uncaught Error: Call to undefined function wp() in /home/nr4dxonhypyy/public_html/wp-blog-header.php:16

Fatal error: Uncaught Error: Call to undefined function wp() in /home/nr4dxonhypyy/public_html/wp-blog-header.php:16 Stack trace: #0 /home/nr4dxonhypyy/public_html/index.php(17): require() #1 {main} thrown in /home/nr4dxonhypyy/public_html/wp-blog-header.php on line 16 I reinstalled WordPress, (upload the new copy on the site, and I made sure it's up to date) - equivalent to a manual update. After that website works well and I quickly make sure and update all the plugin and theme But suddenly I see approx 30 minutes the website have same error again I try …
Category: Web

Wordpress white screen

I have big problem with white screen in WordPress. I would like to migrate site from live to localhost, I don't have credentials for hosting, and I've migrated site using All In One Import Plugin. Steps: I've extracted .wpress file using wpress-extractor. On Localhost installed fresh WordPress Created new database and imported database from live site Files from extracted .wpress file I've copied into wp-content Inside wp-config.php change database, set credentials for login, change prefix of database etc ... After …
Category: Web

Call to undefined function get_current_screen() on my localhost

I'm using Wordpress 3.9.1 and I get the Fatal error: Call to undefined function get_current_screen() if I put the following in my funcitons.php or in any file of my theme: $screen = get_current_screen(); echo $screen; Initially when I got the error, I was working on a theme that I'm creating. However, I tried this with few other themes including TwentyFourteen, and I still got the same error. I even deleted my Wordpress database, created a fresh one and re-installed Wordpress, …
Category: Web

Elementor\Scheme_Typography' not found

I just update my elementor plugin and suddenly my site goes down its display this error. code line error shows: 224. $element->add_group_control( Group_Control_Typography::get_type(), [ 'name' => 'eael_tooltip_section_typography', 'selector' => '.tippy-popper[data-tippy-popper-id="{{ID}}"] .tippy-tooltip', 'scheme' => Scheme_Typography::TYPOGRAPHY_3, 'separator' => 'after', 'condition' => [ 'eael_tooltip_section_enable!' => '', ], ] );
Category: Web

White screen of death only in wp-admin

I'm able to log into the website but the moment after login, I get a white screen in wp-admin. I can still access the website and it shows that I am logged in with the toolbar at the top of each page but whenever I venture off into wp-admin, I'm met with a white screen. I've tried renaming the themes and plugins folder, even deleting both. I'm tried increasing the php memory limit to 128M but still no luck. Any …
Category: Web

Fatal error: Call to undefined function get_plugin_data()

My website is down and I can't login to Wordpress. I get this message when I try both: Fatal error: Call to undefined function get_plugin_data() in /home/plantedmiami/public_html/wp-content/plugins/thst-feed/admin/options-init.php on line 29 What do I need to do? I'm launching a huge video project tomorrow and I need this to be working.
Category: Web

500 Error only one one page in the WP admin

Looking for possible solutions, because I'm pretty much lost as to why it happens. In WP Admin, all my pages, when I want to modify them, are OK. But one throws a 500 error. What could be the problem? The same code is loaded in all pages, AFAIK. So how can one 500, when the others are ok? Plugins are: ACF Contact Form 7 oAuth Twitter feed for developers Regenerate Thumbnails Transient Manager WP Mail Logging WPML Yoast
Category: Web

Fatal error in wordpress htdocs

I need help with this Fatal error: Array and string offset access syntax with curly braces is no longer supported in /homepages/25/d502821911/htdocs/...../wp-includes/script-loader.php on line 757
Category: Web

Fatal error when accessing Pages in WP admin (and problems editing any pages)

I have a site that's been going for about 4 years with several hundred pages. I've had strange problems when accessing the Pages section (to choose a page for editing) and while in Page editing. These have been resolved (up until now) by deactivating plugins down to the bare minimum (three that are essential for the user experience), then working on page creation or editing, then reactivating plugins. The symptoms were two-fold: Pages - this showed up totally blank; could …
Category: Web

Critical error - can't post comments

I've been building a website (not a professional and don't know much about coding). Everything looks good, except for I can't post comments on my blog posts. I get a "critical error" message. Please see below and please advise. I'm using the Blocksy theme and Gutenberg builder. I also recently migrated my website from one hosting provider to another, not sure if that's relevant, but I'm working in a staging environment and it doesn't work there either. I've removed the …
Category: Web

Error while loading wordpress site "Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in /home

I am facing fatal error while loading wordpress site. Error is: Fatal error: Uncaught Error: Call to undefined function twentytwentyone_the_html_classes() in ......(here in the middle shows some links).... and at the end it shows in bold public_html/wp-content/themes/twentytwentyone/header.php on line 16 There has been a critical error on this website. I am not experience in wordpress. I need to resolve this error. here is my site URL https://ijazmedia.com/ I have tried to add below code in header.php file but it did …
Category: Web

Getting error when using wp_insert_post()

When I use wp_insert_post() I get a white page that says "Are you sure you want to do this?". I get no PHP errors. I am using this outside of wordpress and have wp-load.php as well as /wp-admin/includes/file.php included. My code looks like this. require_once $_SERVER['DOCUMENT_ROOT'] . "/wp-load.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/wp-admin/includes/file.php"; $imagePost = array( 'post_title' => "Test", 'post_content' => 'Content added later.', 'post_status' => 'publish', 'post_author' => 1, 'tags_input' => "'test'", 'post_category' => array(1), 'post_type' => 'post' ); $postID …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.