Blog

WordPress Orders Pagination Setup

User function my_custom_menu_page(){ //esc_html_e( 'Reports', 'textdomain' ); global $wpdb; $results = $wpdb->get_results("select id , product_id,price,email,first_name,last_name, order_status, payer_order_id,order_date FROM " . $wpdb->prefix . "orders WHERE 1 ORDER BY order_date DESC"); if ($_SERVER['REQUEST_METHOD'] === 'POST') { // if ($_POST['email'] == "vipul.kumar@123789.org") { //print_r($_POST); $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://www.astrowow.com/apis/requeueOrder", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", […]

WPML Elementor Conflict Resolution

User As I mentioned earlier it was the issue of WPML conflict with elementor , So for I have used same version elementor / wpml as per our staging site to fix this issue for now. I've also taken backup of previously installed version at live site Correct above sentnce Assistant Here's a corrected version […]

AWS EC2 Zip Creation

User aws ssh create zip Assistant To create a zip file on an AWS EC2 instance via SSH, follow these steps: 1. **SSH into Your EC2 Instance**: Open your terminal and connect to your EC2 instance using SSH: ssh -i /path/to/your/key.pem ubuntu@ec2-16-170-254-93.eu-north-1.compute.amazonaws.com 2. **Navigate to the Desired Directory**: Use the `cd` command to navigate to […]

Elementor WPML Compatibility Issue

User PHP Fatal error: Uncaught Error: Class "ElementorCoreSchemesColor" not found in /html/all4cloud-wordpress-website/web/app/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/WidgetAdaptor.php:156 Stack trace: in error 4.6.12 wpml Assistant The error you're encountering indicates that the class `ElementorCoreSchemesColor` cannot be found, which is likely due to a compatibility issue between the WPML plugin and the version of Elementor you are using. Here are some steps […]

Elementor Class Compatibility Update

User Assistant If you want to adapt the plugin code for the new `ElementorCoreSchemesColor` class, you can update it as follows: <?php /** * Plugin Name: Elementor CoreSchemesColor and CoreSchemesTypography Class Issue **/ namespace Elementor; add_action( 'plugins_loaded', function () { if ( ! class_exists( 'ElementorCoreSchemesColor' ) ) { class Scheme_Color extends CoreSchemesColor {} } } […]

Elementor Class Not Found

User PHP Fatal error: Uncaught Error: Class "ElementorCoreSchemesColor" not found in /html/all4cloud-wordpress-website/web/app/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/WidgetAdaptor.php:156 Stack trace: Assistant The error indicates that the `ElementorCoreSchemesColor` class is missing or not being loaded in your WordPress setup. This often happens due to: 1. **Incompatible or outdated plugins**: The `sitepress-multilingual-cms` (WPML) plugin might not be fully compatible with your current version […]

Reverify WPML Site Key

User How I reverify site key wpml wordpress Assistant To reverify or update the WPML (WordPress Multilingual Plugin) site key in WordPress, follow these steps: — ### 1. **Obtain the Correct Site Key** – Log in to your WPML account at [WPML.org](https://wpml.org/). – Go to **Account > Sites**. – If your site isn't listed: 1. […]

Error Handling in PHP

User { "success": true, "data": { "responses": { "get_widgets_config": { "success": false, "code": 0, "data": "Trying to access array offset on value of type null" } Assistant The error `"Trying to access array offset on value of type null"` typically occurs in PHP when you're trying to access an index of an array, but the […]

Live Event Scheduling

User Hi @jadefisher15 I'll make it live at Thursday 9th Jan , 5:30 uk time Correct above Assistant Hi @jadefisher15, I'll make it live on Thursday, 9th January, at 5:30 PM UK time.

WPML Elementor Integration Issue

User /html/all4cloud-wordpress-website/web/app/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/Widget.php(50): WPMLPBElementorLanguageSwitcherWidgetAdaptor->registerControls() #1 /html/all4cloud-wordpress-website/web/app/plugins/elementor/includes/base/controls-stack.php(2427): WPMLPBElementorLanguageSwitcherWidget->register_controls() #2 /html/all4cloud-wordpress-website/web/app/plugins/elementor/includes/base/widget-base.php(1050): ElementorControls_Stack->init_controls() #3 /html/all4cloud-wordpress-website/web/app/plugins/elementor/includes/base/controls-stack.php(569): ElementorWidget_Base->init_controls() #4 /html/all4cloud-wordpress-website/web/app/plugins/elementor/includes/base/widget-base.php(184): ElementorControls_Stack->get_stack() #5 /html/all4cloud-wordpress-website/web/app/plugins/elementor/includes/managers/widgets.php(391): ElementorWidget_Base->get_stack(false) #6 [internal function]: ElementorWidgets_Manager->ajax_get_widget_types_controls_config(Array, Object(ElementorCoreCommonModulesAjaxModule)) #7 /html/all4cloud-wordpress-website/web/app/plugins/elementor/core/common/modules/ajax/module.php(176): call_user_func(Array, Array, Object(ElementorCoreCommonModulesAjaxModule)) #8 /html/all4cloud-wordpress-website/web/wp/wp-includes/class-wp-hook.php(324): ElementorCoreCommonModulesAjaxModule->handle_ajax_request('') #9 /html/all4cloud-wordpress-website/web/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /html/all4cloud-wordpress-website/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /html/all4cloud-wordpress-website/web/wp/wp-admin/admin-ajax.php(192): do_action('…') Assistant The stack trace you provided indicates an issue related to the `WPML` plugin […]