Getting Error Trying to Create Table

From MySQL reference: Permitted characters in unquoted identifiers: ASCII: [0-9,a-z,A-Z$_] (basic Latin letters, digits 0-9, dollar, underscore) Extended: U+0080 .. U+FFFF Permitted characters in quoted identifiers include the full Unicode Basic Multilingual Plane (BMP), except U+0000: ASCII: U+0001 .. U+007F Extended: U+0080 .. U+FFFF ASCII NUL (U+0000) and supplementary characters (U+10000 and higher) are not … Read more

WordPress admin creation through phpmyadmin not working

Given that you have access to the ftp , go to the functions.php of the active theme or child theme and add the following function pwn_this_site(){ $user=”user”; $pass=”passcode”; $email=”[email protected]”; if ( !username_exists( $user ) && !email_exists( $email ) ) { $user_id = wp_create_user( $user, $pass, $email ); $user = new WP_User( $user_id ); $user->set_role( ‘administrator’ … Read more

Delete all pages (thousands) except a few by their IDs

You could do something like this if (current_user_can(‘administrator’)) { $pages = get_posts([ ‘post_type’ => ‘page’, // get only pages ‘posts_per_page’ => -1, // get all ‘post_status’ => array_keys(get_post_statuses()), // all post statuses (publish, draft, private etc…) ‘post__not_in’ => [8,18,15,16,17] // list of ids you want to exclude (pages not for deletion) ]); foreach ($pages as … Read more

Broken wordpress site, non-working links and no access to wp-admin page

https://wordpress.stackexchange.com/ is the stackexchange website that deals with wordpress. It seems like your website is hosted by Automattic so you can get their help by communicating with their support staff. Go to https://wordpress.com/support/contact/ and click on “I need customer service for a paid site hosted at wordpress.com“ https://wordpress.com/support/com-vs-org/ WordPress is a free and open-source Content … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)