Plugin stuck at importer page

Closed

Import WP Updated 2 days ago 9 Replies

Geert asked 3 weeks ago on March 14, 2025 at 9:15 am

Hi,

 

I was cleaning my database and removed something too much. Now importWP is stuck when opening the importers page. I have tried almost anything. Removing plugins manually, disabling, reactivating, etc. It happens when I only have importWP (jc-importer) so it seems not to be in the pro version.

When I select the removal of data on deinstalling, the plugin deletion get’s also stuck.

Can you guide me here, is there something I can remove by hand in SQL for example?

Best,

Geert

J

James replied Support Agent

3 weeks ago on March 14, 2025 at 4:16 pm

Hi Geert,

Does your server have any error logs to help pinpoint what the issue is?

A guide to enable/view debug logging: https://www.elegantthemes.com/blog/tips-tricks/using-the-wordpress-debug-log

James

GK

Geert replied

3 weeks ago on March 15, 2025 at 7:33 pm

Hi Thanks for the reply. Debugging was a bit of a thing since not always errors ar trown. Best I found is this:

 

Stack trace:

#0 /home/customer/www/1000-pieces.com/public_html/wp-content/plugins/jc-importer/class/Common/Model/ImporterModel.php(115): ImportWP\Common\Model\ImporterModel->setup_data(Object(WP_Post))

#1 /home/customer/www/1000-pieces.com/public_html/wp-content/plugins/jc-importer/class/Common/Importer/ImporterManager.php(96): ImportWP\Common\Model\ImporterModel->__construct(Object(WP_Post), true)

#2 /home/customer/www/1000-pieces.com/public_html/wp-content/plugins/jc-importer/class/Common/Importer/ImporterManager.php(75): ImportWP\Common\Importer\ImporterManager->get_importer(Object(WP_Post))

#3 /home/customer/www/1000-pieces.com/public_html/wp-content/plugins/jc-importer/class/Common/Rest/RestManager.php(457): ImportWP\Common\Importer\ImporterManager->get_importers()

#4 /home/customer/www/1000-pieces.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): ImportWP\Common\Rest\RestManager->get_importers(Object(WP_REST_Request))

#5 /home/customer/www/1000-pieces.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/iwp/v1/importe...', Array, NULL)

#6 /home/customer/www/1000-pieces.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))

#7 /home/customer/www/1000-pieces.com/public_html/wp-includes/rest-api.php(449): WP_REST_Server->serve_request('/iwp/v1/importe...')

#8 /home/customer/www/1000-pieces.com/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))

#9 /home/customer/www/1000-pieces.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)

#10 /home/customer/www/1000-pieces.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)

#11 /home/customer/www/1000-pieces.com/public_html/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)

#12 /home/customer/www/1000-pieces.com/public_html/wp-includes/class-wp.php(813): WP->parse_request('')

#13 /home/customer/www/1000-pieces.com/public_html/wp-includes/functions.php(1336): WP->main('')

#14 /home/customer/www/1000-pieces.com/public_html/wp-blog-header.php(16): wp()

#15 /home/customer/www/1000-pieces.com/public_html/index.php(17): require('/home/customer/...')

#16 {main}

  thrown in /home/customer/www/1000-pieces.com/public_html/wp-content/plugins/jc-importer/class/Common/Model/ImporterModel.php on line 178. What looks like code that does some file hassle. With ChatGPT help, the suggestion of some extra if then does not help (though ChatGPT is not very creative here).

Though disabling the code in ImporterModel does not make it better ;-)

I can import an importer (from another site), but ... same thing. I can share login if you want too.

J

James replied Support Agent

2 weeks ago on March 17, 2025 at 9:07 pm

Thanks for the debug information, its just missing the line before it where it says what the error is, are you able to share that?

GK

Geert replied

2 weeks ago on March 19, 2025 at 8:11 am

Yes, this one:

 

[14-Mar-2025 19:09:54 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /home/customer/www/1000-pieces.com/public_html/wp-content/plugins/jc-importer/class/Common/Model/ImporterModel.php:198

 

 

J

James replied Support Agent

2 weeks ago on March 20, 2025 at 10:37 pm

Are you able to share a login, not getting much from that stack trace.

GK

Geert replied privately

2 weeks ago on March 21, 2025 at 8:22 am

GK

Geert replied

1 week ago on March 24, 2025 at 8:06 am

That is OK. Should I prepare something else to make it efficient for you? See private reply for details.

J

James replied Support Agent

1 week ago on March 24, 2025 at 7:02 pm

Are you able to remove all posts with the post type "iwp-importer" directly from the database, as i think your previous database cleanup may have broken some serialized data relating to importers.

J

James replied Support Agent

2 days ago on March 31, 2025 at 6:07 pm

I have attached an updated version of the importer that should allow you to see the importer list, as this version fixes an issue when importer data is not in the correct format.

James