Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data import page not load #570

Open
champakakumara opened this issue Aug 18, 2022 · 9 comments
Open

data import page not load #570

champakakumara opened this issue Aug 18, 2022 · 9 comments
Labels
needs-reply Auto-close in 30 days if no response

Comments

@champakakumara
Copy link

when we click data import on settings got below error page , how resolve it?

This page isn’t working
xxx.xxxxxx.com is currently unable to handle this request.
HTTP ERROR 500

@RussH
Copy link
Member

RussH commented Aug 18, 2022

Hi can you confirm which version of opencats you're using, and version of php, mariadb. Also the entries from your apache error log and access log when this happens?

@champakakumara

This comment was marked as outdated.

@champakakumara
Copy link
Author

champakakumara commented Aug 18, 2022

Hi can you confirm which version of opencats you're using, and version of php, mariadb. Also the entries from your apache error log and access log when this happens?

opencats Version 0.9.4 Countach
PHP 5.6.40
Server version: 10.1.48-MariaDB

[Thu Aug 18 08:56:17.841648 2022] [:error] [pid 13754] [client 10.0.0.53:40276] PHP Fatal error: Class 'Import' not found in /var/www/html/opencats/modules/import/ImportUI.php on line 334, referer: https://xxx.xxxx.com/opencats/index.php?m=settings&a=administration

@champakakumara

This comment was marked as duplicate.

@RussH
Copy link
Member

RussH commented Aug 18, 2022

and this is using the Mass Import function from the admin /settings page?

@champakakumara
Copy link
Author

Settings: Administration- Data Import (Import resumes, candidates, companies or contacts from files on your computer.)

@RussH
Copy link
Member

RussH commented Aug 19, 2022

Okay - so I have a 0.9.4 instance. the import is a long process though.. can you check your max upload size and max execution time is configured in php.ini and not left at the defaults?
php.ini
max_execution_time = 300
max_input_time = 60
post_max_size = 20M
upload_max_filesize = 20M
max_file_uploads = 20

@champakakumara
Copy link
Author

yes those are configured

@RussH
Copy link
Member

RussH commented Sep 2, 2022

I assume if you look in the error log, then immediately above that one line there's another one with something similar to
PHP Warning: include_once(): Failed opening 'LEGACY_ROOT/modules/import/Import.php')' for inclusion

if so - the path to import.php needs amended for the app to find it. Please note that there are open vulnerabiities with 0.9.4 and you should only run this if you are not exposing the career portal to the internet.
If you are using the career portal you must upgrade to the current release asap.
Also there was significant rework for candidate import function in the versions after 0.9.4

@RussH RussH added the needs-reply Auto-close in 30 days if no response label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-reply Auto-close in 30 days if no response
Projects
None yet
Development

No branches or pull requests

2 participants