Phlox Pro - Elementor Multi-Purpose WordPress Theme

Phlox Pro - Elementor Multi-Purpose WordPress Theme v5.17.12 Nulled

No permission to download
  • Welcome to Babiato Forum! All Resources are 100% clean and Safe to Use

Mrsam_1

Well-known member
Administrative
Trusted Seller
Jul 25, 2018
57,248
62,501
120
please wait.
Code:
public function import() {

        if ( ! isset( $_POST['ID'] ) || ! wp_verify_nonce( $_POST['verify'], 'aux-import-demo-' . $_POST['ID'] ) ) {
            // This nonce is not valid.
            wp_send_json_error( array( 'message' => __( 'Invalid Inputs.', 'auxin-elements' ) ) );
        }

        // Put demo ID in a variable
        $demo_ID = $_POST['ID'];

        $demo_path = ABSPATH . '/wp-content/plugins/auxin-elements/demos/' . $demo_ID . '.json';
        
        if ( file_exists( $demo_path ) ) {
            $data = file_get_contents( $demo_path );
            file_put_contents( ABSPATH . '/wp-content/uploads/phlox-pro/demo.json', $data );
        } else {
            $data = json_decode( $this->parse( 'https://demo.phlox.pro/api/v2/data/' . $demo_ID, 'insert', 'post' ), true );
        }

already so.
 
  • Like
Reactions: RogerM

Mrsam_1

Well-known member
Administrative
Trusted Seller
Jul 25, 2018
57,248
62,501
120
If we count too. I'm going to try 13..
 

RogerM

Well-known member
Mar 3, 2020
461
439
63
Maracaibo, Venezuela
Code:
public function import() {

        if ( ! isset( $_POST['ID'] ) || ! wp_verify_nonce( $_POST['verify'], 'aux-import-demo-' . $_POST['ID'] ) ) {
            // This nonce is not valid.
            wp_send_json_error( array( 'message' => __( 'Invalid Inputs.', 'auxin-elements' ) ) );
        }

        // Put demo ID in a variable
        $demo_ID = $_POST['ID'];

        $demo_path = ABSPATH . '/wp-content/plugins/auxin-elements/demos/' . $demo_ID . '.json';
       
        if ( file_exists( $demo_path ) ) {
            $data = file_get_contents( $demo_path );
            file_put_contents( ABSPATH . '/wp-content/uploads/phlox-pro/demo.json', $data );
        } else {
            $data = json_decode( $this->parse( 'https://demo.phlox.pro/api/v2/data/' . $demo_ID, 'insert', 'post' ), true );
        }

already so.
Do we add this as @inmygreed mentions in post #398?
 

RogerM

Well-known member
Mar 3, 2020
461
439
63
Maracaibo, Venezuela
what's r problem.
I would like to access the demo sites on Phlox but I am reading through the latest comment about issues people are having with that and a solution that a random guy with 5 posts posted.

That´s why I was requesting a second opinion/feedback from more experienced, trusted, and established members of this community. So I know I am on the safe side of things before editing the content of a theme or plugin by adding code.
 

RogerM

Well-known member
Mar 3, 2020
461
439
63
Maracaibo, Venezuela
I found the solution. If u can't import demo, u need to do this :

Download Demo JSON Here :

And then extract it on "wp-content/plugins/auxin-elements/"

After that, edit file "wp-content/plugins/auxin-elements/includes/classes/class-auxin-demo-importer.php"

Go to line 204 or find text :

PHP:
$data = json_decode( $this->parse( 'https://demo.phlox.pro/api/v2/data/' . $demo_ID, 'insert', 'post' ), true );

Replace with :

PHP:
$demo_path = ABSPATH . '/wp-content/plugins/auxin-elements/demos/' . $demo_ID . '.json';
        if ( file_exists( $demo_path ) ) {
            $data = file_get_contents( $demo_path );
            file_put_contents( ABSPATH . '/wp-content/uploads/phlox-pro/demo.json', $data );
        } else {
            $data = json_decode( $this->parse( 'https://demo.phlox.pro/api/v2/data/' . $demo_ID, 'insert', 'post' ), true );
        }

Done.
Code:
public function import() {

        if ( ! isset( $_POST['ID'] ) || ! wp_verify_nonce( $_POST['verify'], 'aux-import-demo-' . $_POST['ID'] ) ) {
            // This nonce is not valid.
            wp_send_json_error( array( 'message' => __( 'Invalid Inputs.', 'auxin-elements' ) ) );
        }

        // Put demo ID in a variable
        $demo_ID = $_POST['ID'];

        $demo_path = ABSPATH . '/wp-content/plugins/auxin-elements/demos/' . $demo_ID . '.json';
       
        if ( file_exists( $demo_path ) ) {
            $data = file_get_contents( $demo_path );
            file_put_contents( ABSPATH . '/wp-content/uploads/phlox-pro/demo.json', $data );
        } else {
            $data = json_decode( $this->parse( 'https://demo.phlox.pro/api/v2/data/' . $demo_ID, 'insert', 'post' ), true );
        }

already so.
I already try both methods and I am still getting this error when trying to import the Magazine demo site.

2020-05-13 18_54_26-.png
 

Forum statistics

Threads
73,540
Messages
953,682
Members
282,144
Latest member
Aleeza

About us

  • Babiato Forum - The webmaster community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day, updating Daily resource to make sure our community is one of the best.

Quick Navigation

User Menu