Article report failed

¡Hi everyone! Good Day!

I’m using version OJS
I tried to get the report articles in management and send me this page.

then in the log… i received this message
[Tue Jun 15 11:43:44.988232 2021] [php7:error] [pid 31595] [client] PHP Fatal error: Uncaught Error: Call to a member function getLocalizedTitle() on null in /srv/httpd/novohispana/plugins/reports/articles/\nStack trace:\n#0 /srv/httpd/novohispana/lib/pkp/pages/management/ ArticleReportPlugin->display(Array, Object(Request))\n#1 /srv/httpd/novohispana/lib/pkp/pages/management/ PKPToolsHandler->report(Array, Object(Request))\n#2 /srv/httpd/novohispana/lib/pkp/classes/core/ PKPToolsHandler->tools(Array, Object(Request))\n#3 /srv/httpd/novohispana/lib/pkp/classes/core/ PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)\n#4 /srv/httpd/novohispana/lib/pkp/classes/core/ PKPPageRouter->route(Object(Request))\n#5 /srv/httpd/novohispana/lib/pkp/classes/core/ Dispatcher->dispatch(Object(Request))\n#6 /srv/httpd/novohispana/index.php(68): PKPApplication->execute()\n#7 {main}\n thrown in /srv/httpd/novohispana/plugins/reports/articles/ on line 128, referer:

then i put this line on code
/plugins/reports/ below of line 128 (error_log) to bring the assoc_type=1048585 and assoc_id=77717
assoc_type=1048585 assoc_id=77716
assoc_type=1048585 assoc_id=77715; bring 3 records.
Its seems that not see the title of what? i found the assoc_id only in notifications, but i’m not sure are the correct tables for delete or update.

Thanks Community, Regards!
SOS! @asmecher
the line error_log() ,i substract for other topic it works! :slight_smile:

1 Like

Any information can help me! Thanks PKP community!

I’m facing the same issue. Updated it to the latest stable version and the error remains.

1 Like

The problem comes from de database, the error log see a title zero or null in article report, i think this have a solution, i have more journals with the same version and it works, i copy the files and i compare and i can’t resolved.

/lib/pkp/classes/submission# nano

in this file we are going to remove the negation of the validation function so that the csv is allowed to print, once it is printed we are going to identify the titles that have no relation or congruence together with their id, we identify their ids (submission_id), with this we realize that its section_id points to zero, so we need to delete those records that appeared in the csv.

select * from submissions where submission_id = ‘3638’; (example)

all that points to zero:

select * from submissions where section_id = ‘0’;

then delete:

delete * from submissions where section_id = ‘0’;

This topic was automatically closed after 3 days. New replies are no longer allowed.