We were facing the error “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. We’ve fixed it by upgrading WordPress to match it with PHP 7.0 or higher. We didn’t check PHP, MySQL extension installed on the host.
Tag » Error
Peer Not Authenticated | Gradle Project Refresh Failed – Solutions
Gradle is one core component of Android Studio. Every project runs only after a successful Gradle build. However, there might be times when the Gradle fails to sync. Gradle: Project refresh failed. Cause: Peer not authenticated is such one error.
Debugging in WordPress – Writing Custom PHP Data or Log Messages
WordPress has a configurable debugging system that allows us to display as well as log PHP errors, notices, and warnings. Besides that, sometimes we need to debug the code by writing custom PHP data or messages in a log file.
Screen Options Not Working in WordPress Dashboard
Screen Options Not Working / Saving in WordPress Dashboard is a very irritating problem. Once you update / save any screen option and it doesn’t work at all. Or does only once and fails on next page reload.
4 ways to fix – Cannot reinitialize jQuery DataTable
jQuery DataTable is very user-friendly & provides a lot features and is easier to use. But when we use jQuery DataTable, we face a unique type of alert message (Cannot reinitialize JQuery DataTable). These DataTables show the data in listing at front-end and in an good user friendly manner. It also provides features to use like sorting, searching, paging, and export to different types of file and print.
How to catch curl execution error
I was sending curl execution request for posting data, But I was unable to get the curl response and even error also. I tried Google and found some trips to check the error occurring on executing curl request
jQuery focus not working in Chrome
Sometimes before I faced a issue the jQuery focus not working in Chrome and in Mozilla It was working fine. I have google the issue and came up with a solution. Same solution I am explaining here so that It can be useful for developers.
Facebook app is still in development mode & don’t have access
When you setup App on Facebook and try to make login with Facebook available in your script, everything seems fine but when someone attempt to login with a Facebook account he/she gets either of these errors from Facebook: App Not Setup: This app is still in development mode, and you don’t have access to it. Switch to a registered test user or ask an app admin for permissions. The developers of this app have not set up this app properly for Facebook Login.
2 ways to fix: Can’t use method return value in write context
Have you ever used a function call in `empty()` for an `if` condition to perform some checking? Then you might come up with an PHP fatal error saying Can’t use method return value in write context. I am explaining here why did the error come and 2 ways to write them correctly.
2 ways to truncate foreign key constrained table
In MySQL we create tables and build relationship among them. In the process if we need to truncate foreign key constrained table then we can’t do it simply and MySQL will throw an error even we have already removed table having foreign key constraint:
ERROR 1701 (42000): Cannot truncate a table referenced in a foreign key constraint…