nhanvillas
Forum Replies Created
-
Forum: Plugins
In reply to: [NS Cloner - Site Copier] Cron rescheduling errorHi 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->siteCreate() #1 /home/sierralite/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request() #2 /home/sierralite/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() #3 /home/sierralite/public_html/wp-includes/rest-api.php(420): WP_REST_Server->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->apply_filters() #6 /home/sierralite/public_html/wp-includes/plugin.php(565): WP_Hook->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 />