OJS Error: Use of undefined constant ASSOC_TYPE_ANY

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
daedalusblnt
Posts: 2
Joined: Tue Jun 18, 2013 2:46 pm

OJS Error: Use of undefined constant ASSOC_TYPE_ANY

Postby daedalusblnt » Wed Jun 19, 2013 2:03 am

I've updated OJS 2.3.8 to 2.4.2 and when I try to upload a layout to galley getting errors:

Code: Select all

NOTICE: Use of undefined constant ASSOC_TYPE_ANY - assumed 'ASSOC_TYPE_ANY' (/data/web/pediatricsciencescom/ojs/classes/journal/JournalDAO.inc.php:364)
.
.
.
.
NOTICE: Use of undefined constant ASSOC_TYPE_ANY - assumed 'ASSOC_TYPE_ANY' (/data/web/pediatricsciencescom/ojs/classes/journal/JournalDAO.inc.php:364)

ojs2 has produced an error Message: WARNING: Cannot modify header information - headers already sent by (output started at /data/web/pediatricsciencescom/ojs/lib/pkp/classes/core/PKPApplication.inc.php:392) In file: /data/web/pediatricsciencescom/ojs/lib/pkp/classes/core/PKPRequest.inc.php At line: 87 Stacktrace: Server info: OS: Linux PHP Version: 5.2.6-1+lenny16 Apache Version: eso-es.net_HTTP_Server mod_perl/2.0.4 Perl/v5.10.0 DB Driver: mysql DB server version: 5.0.51a-24+lenny5-log


Maybe I was getting same errors before I don't know. Because just ON the show errors. If I turn OFF the show errors everthing seems ok but when I click an article I don't see a PDF file just see a code page.
Thanks for help.

JasonNugent
Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: OJS Error: Use of undefined constant ASSOC_TYPE_ANY

Postby JasonNugent » Wed Jun 19, 2013 10:10 am

Hi, daedalusblnt,

The warning is cosmetic and doesn't affect anything if you have warnings turned off. If you'd like to make it go away entirely, you can apply this trivial change:

https://github.com/pkp/ojs/commit/ae328 ... c8770336b8

Regards,
Jason

daedalusblnt
Posts: 2
Joined: Tue Jun 18, 2013 2:46 pm

Re: OJS Error: Use of undefined constant ASSOC_TYPE_ANY

Postby daedalusblnt » Wed Jun 19, 2013 2:31 pm

JasonNugent wrote:Hi, daedalusblnt,

The warning is cosmetic and doesn't affect anything if you have warnings turned off. If you'd like to make it go away entirely, you can apply this trivial change:

https://github.com/pkp/ojs/commit/ae328 ... c8770336b8

Regards,
Jason


Thanks man, working great...


Return to “OJS Technical Support”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest