Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi Authors,

    I have a value which return null when I call ns_cloner()->schedule->add() to clone my site via API in my plugin and i have active cloner pro plugin and site copier plugin but it isn’t work. Can you show me how to fix this error ?

    My request data:

    [template_blog_id] => 2 [subdomain] => jodi [title] => Jodi Orosz [options] => {“owner_key”:”52c1e6cb377600412bc81978ad677bf43eb2b54e”,”api_key”:”Y2IzZGVhOWFiMGZlYWM1NTU2Y2E4NDBmOTkyYTc2Zjg1ZTViZjFlOQ==”,”api_password”:”ZmU4NWZhZTJlODgyZmY0MzJiMzM4MDc4MDhjNjE4MDY4Zjc1MTJhMw==”,”owner_username”:”jodi”,”owner_365_email”:”[email protected]”} [wp_new_user] => {“username”:”jodi”,”email”:”[email protected]”}

    My url endpoint: ttps://example.com/wp-json/365villas/api/v1/sites/create

    My Errors:

    <b>Fatal error</b>: Uncaught Error: Call to a member function add() on null in /home/sierralite/public_html/wp-content/plugins/villas-365-api/api/class-villas-365-api-sites.php:760 Stack trace: #0 /home/sierralite/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): Villas_365_API_Sites-&gt;siteCreate() #1 /home/sierralite/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server-&gt;respond_to_request() #2 /home/sierralite/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server-&gt;dispatch() #3 /home/sierralite/public_html/wp-includes/rest-api.php(420): WP_REST_Server-&gt;serve_request() #4 /home/sierralite/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() #5 /home/sierralite/public_html/wp-includes/class-wp-hook.php(348): WP_Hook-&gt;apply_filters() #6 /home/sierralite/public_html/wp-includes/plugin.php(565): WP_Hook-&gt;do_action() #7 /home/sierralite/public_html/wp-includes/class-wp.php(418): do_action_ref_array() #8 /home/sierralite/public_html/wp-includes/class-wp.php in <b>/home/sierralite/public_html/wp-content/plugins/villas-365-api/api/class-villas-365-api-sites.php</b> on line <b>760</b><br />

Viewing 1 replies (of 1 total)