Uncaught Error: Class ‘Redis’ errors on a site I’ve transfered to new hosting

I’ve been given a site that I need to install on my server. The site was made by someone else and it seems to have redis installed.

I get errors such as (paths altered/truncated in the error msg for privacy reasons):

Fatal error: Uncaught Error: Class ‘Redis’ not found in wp-content\object-cache.php:732 Stack trace: #0 wp-content\object-cache.php(171): WP_Object_Cache->__construct() #1 wp-includes\load.php(638): wp_cache_init() #2 wp-settings.php(131): wp_start_object_cache() #3 wp-config.php(94): require_once(‘\path\…’) #4 wp-load.php(37): require_once(‘\path\gree…’) #5 wp-blog-header.php(13): require_once(‘\path\…’) #6 index.php(17): require(‘\path\…’) #7 {main} thrown in wp-content\object-cache.php on line 732

What’s really odd is that they didn’t give me the WP codebase, just the wp-content folders with theme, plugins, uploads.

So the entire wp codebase, wp-config etc are all defaults that I’ve just obtained from the current latest version at WordPress.org.

So if the wp-config is as default, how can some redis like system be coming into play? I’ve never had this issue before and transferred 101 pre-build WP sites between servers.

Can anyone assist ?

Fatal error: Uncaught Error: Class ‘WP_Block_Styles_Registry’

I am having some issues determining the solution to this problem below. The website was sent to our team to fix.

Turned on error reporting in wp-config.php:
define('WP_DEBUG', true);

WordPress version: 5.3.2
PHP version: 7.2

WordPress Theme: Grow Pro

Fatal error: Uncaught Error: Class 'WP_Block_Styles_Registry' not  found in /home/website/public_html/clientsite.com/wp-includes/script-  loader.php:2902 Stack trace: #0  /home/website/public_html/clientsite.com/wp-includes/class-wp-  hook.php(288): enqueue_block_styles_assets('') #1  /home/website/public_html/clientsite.com/wp-includes/class-wp-  hook.php(312): WP_Hook->apply_filters(NULL, Array) #2  /home/website/public_html/clientsite.com/wp-includes/plugin.php(478):  WP_Hook->do_action(Array) #3  /home/website/public_html/clientsite.com/wp-includes/script-  loader.php(2856): do_action('enqueue_block_a...') #4  /home/website/public_html/clientsite.com/wp-includes/class-wp-  hook.php(288): wp_common_block_scripts_and_styles('') #5  /home/website/public_html/clientsite.com/wp-includes/class-wp-  hook.php(312): WP_Hook->apply_filters(NULL, Array) #6  /home/website/public_html/clientsite.com/wp-includes/plugin.php(478):  WP_Hook->do_action(Array) #7 /home/website/public_html/ir in  /home/website/public_html/clientsite.com/wp-includes/script-loader.php  on line 2902 

There has been a critical error on your website.

Learn more about debugging in WordPress.


For privacy reasons, I wouldn’t be sharing the live website link.

Any help with resolving these errors would be greatly appreciated.

Thank you in advance,
Nick Hiebert

Fatal error: Uncaught Error: Cannot use object of type WP_Error as array due to wpml-translation-management

I tried to create a CPT post using wp_insert_post() using loop. However, it only creates one post and shows the following error.

Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\theme\wp-content\plugins\wpml-translation-management\inc\actions\wpml-tm-post-actions.class.php:195 Stack trace: #0 C:\xampp\htdocs\theme\wp-content\plugins\wpml-translation-management\inc\actions\wpml-tm-post-actions.class.php(50): WPML_TM_Post_Actions->save_translation_priority(1543) #1 C:\xampp\htdocs\theme\wp-content\plugins\wpml-translation-management\inc\wpml-private-actions.php(69): WPML_TM_Post_Actions->save_post_actions(1543, Object(WP_Post), false) #2 C:\xampp\htdocs\theme\wp-includes\class-wp-hook.php(286): wpml_tm_save_post(1543, Object(WP_Post), false) #3 C:\xampp\htdocs\theme\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 C:\xampp\htdocs\theme\wp-includes\plugin.php(465): WP_Hook->do_action(Array) #5 C:\xampp\htdocs\theme\wp-content\plugins\sitepress-multilingual-cms\inc\post-translation\wpml-post-translation.class.php(183): do_action(‘wpml_tm_save_po…’, 1543, Object(WP_Post), false) #6 C:\xampp in C:\xampp\htdocs\theme\wp-content\plugins\wpml-translation-management\inc\actions\wpml-tm-post-actions.class.php on line 195

I have my code as shown below:

$ args = array(

‘ID’ => $ post_id,

‘comment_status’ => ‘closed’,

‘ping_status’ => ‘closed’,

‘post_author’ => $ author_id,

‘post_title’ => $ title,

‘post_content’ => $ content,

‘post_status’ => ‘publish’,

‘post_type’ => $ cpt,

);

$ post_id = wp_insert_post($ args);

Unity Help solving Uncaught Abort on HTML5 Build

For some reason there is a Invoke that is triggered when a button is clicked that causes my game to crash. Any idea how I can sort this out?

I have plenty other Invokes and none has given problems. I have the Enable Exceptions option set to None and game works fine inside Unity.

I can give more info on the error if you can point to me to what’s relevant. Thanks so much!

Invoking error handler due to Uncaught abort(145) at Error     at jsStackTrace (ed63bf36d25f876fa57fb81632b59202.unityweb:8:22380)     at stackTrace [Object.stackTrace] (ed63bf36d25f876fa57fb81632b59202.unityweb:8:22551)     at Object.onAbort (https://v6p9d9t4.ssl.hwcdn.net/html/1680115/PowerTheGrid_Level3_v7.2_HTML5/Build/3998187b7e8feaa618a93b293c0e6812.js:4:11065) 

Error al hacer consulta Uncaught Error: Call to undefined function mysqli_result()

Estoy atorado necesito actualizar este código pues al parecer varias cosas ya no funcionan en PHP7 y no se como remplazar la clase mysqli_result espero puedan ayudarme

<?php include('db.php'); //DBC();      $  sql = "SELECT * FROM outbox WHERE status = 'U' LIMIT 1";     $  result = mysqli_query($  conn,$  sql);      $  num = mysqli_num_rows($  result);     if( $  num > 0 ){         $  id_sms = mysqli_result($  result,0,"id_sms");         $  cels = mysqli_result($  result,0,"cels");         $  message = mysqli_result($  result,0,"message");          echo "<cels>".$  cels."</cels>             <message>".$  message."</message>             <id_sms>".$  id_sms."</id_sms>";          $  sql = "UPDATE outbox SET status = 'B' WHERE id_sms =     '".$  id_sms."'";         $  result = mysqli_query($  conn,$  sql);      }     else{         echo "EMPTY";     }      mysqli_close($  conn);    ?> 

Uncaught TypeError: visitorIDs.push is not a function

I’m trying to build an array of the ID’s of the users in a peoplePicker Field by using push. So far.. I’m not having much luck as I’m getting this error “Uncaught TypeError: visitorIDs.push is not a function”

My code is below. I appreciate any suggestions/pointers:

 // Get information about all users.             var users = peoplePickerVisitors.GetAllUserInfo();             var userInfo = '';             for (var i = 0; i < users.length; i++) {                 var user = users[i];                 for (var userProperty in user) {                     userInfo += userProperty + ':  ' + user[userProperty] + '<br>';                 }             }              var userloginbase = users[0].Key;             var userlogin = userloginbase.split("\");              var context = SP.ClientContext.get_current();             var newUser = context.get_web().ensureUser('xxxxxxx\' + userlogin[1]);             context.load(newUser);             context.executeQueryAsync(function () {                 },                  function (sender, args) {                 });                 // pause for a second to let the async ensure user complete.                 setTimeout(function() {                      getAssignedToUserIdByEmail(users[0].EntityData.Email);                       visitorIDs = ResolvedToUser.Id;                     visitorIDs.push(ResolvedToUser.Id);                  }, 100);          };   

Uncaught Error: Call to undefined function mysql_connect() – WordPress installation

Trying to install wordpress without xamp on my local machine. Version info:

WordPress: 5.2.3 PHP: 7.3.9 Apache: 2.4.41  

When accessing this url -http://localhost:8080/wordpress/wp-admin/install.php, I see the following in wordpress logs:

[16-Sep-2019 18:47:34 UTC] PHP Fatal error:  Uncaught Error: Call to  undefined function mysql_connect() in C:\apps\httpd-2.4.41-win64-  VS16\Apache24\htdocs\wordpress\wp-includes\wp-db.php:1643 

I tried the solutions available online but I still see the error.

Solutions I tried so far:

Add the following to my wp-config.php:

define( 'WP_USE_EXT_MYSQL', true); 

Added following to php.ini:

extension_dir = "ext" extension=php_mysqli.dll 

This is my phpinfo:

Server API  Apache 2.0 Handler Virtual Directory Support   enabled Configuration File (php.ini) Path   C:\windows Loaded Configuration File   C:\apps\php-7.3.9\php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed    (none) PHP API 20180731 PHP Extension   20180731 Zend Extension  320180731 Zend Extension Build    API320180731,TS,VC15 PHP Extension Build API20180731,TS,VC15 Debug Build no Thread Safety   enabled Thread API  Windows Threads Zend Signal Handling    disabled Zend Memory Manager enabled Zend Multibyte Support  disabled IPv6 Support    enabled DTrace Support  disabled Registered PHP Streams  php, file, glob, data, http, ftp, zip, compress.zlib, phar Registered Stream Socket Transports tcp, udp Registered Stream Filters   convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.* 

Fatal error: Uncaught Error: Class ‘HttpRequest’ not found

Estoy tratando de consumir un webservice al cual tengo que enviarle ciertos datos, al tratar de ejecutarlo me sale el siguiente error: Fatal error: Uncaught Error: Class ‘HttpRequest’ not found

Mi código es este: <?php  $  request = new HttpRequest(); $  request-   >setUrl('https://api.nubarium.com/ocr/obtener_datos'); $  request->setMethod(HTTP_METH_POST);  $  request->setHeaders(array( 'Authorization' => 'Basic c3ljcmVhOl9pMzYuRXhqMnA=', 'Content-Type' => 'application/json' ));  $  request->setBody('{ "id": "imagen base64", "idReverso": ""  }');  try { $  response = $  request->send();  echo $  response->getBody(); } catch (HttpException $  ex) {  echo $  ex;  } ?>