HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


[v5.0.3] Catalogue attachment error

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#64542 (In Topic #13906)
Avatar

Well-settled

1. Create custom catalogue
2. Add new entry, add PDF attachment (or other file type)
3. When guest user or other users than creator try to open attachment, the following error occurs:

Missing class: Hook_attachments_catalogue_entry (version: 5.0.3, PHP version: 5.2.2, URL: /data/attachment.php?id=129)

Hier ist der Stack-Trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/opt/lampp/htdocs/mtbrrmag/sources/failure.php'
Line'604'
Function'get_html_trace'
Args

File'/opt/lampp/htdocs/mtbrrmag/sources/global2.php'
Line'920'
Function'_fatal_exit'
Args

'Missing class: Hook_attachments_catalogue_entry'


File'/opt/lampp/htdocs/mtbrrmag/sources/global.php'
Line'245'
Function'fatal_exit'
Args

'Missing class: Hook_attachments_catalogue_entry'


File'/opt/lampp/htdocs/mtbrrmag/sources/attachments.php'
Line'198'
Function'object_factory'
Args

'Hook_attachments_catalogue_entry'


File'/opt/lampp/htdocs/mtbrrmag/sources/attachments.php'
Line'54'
Function'has_attachment_access'
Args

808

129

database_driver::__set_state(array( 'table_prefix' => 'ocp4_', 'connection_read' => array ( 0 => NULL, 1 => 'mtbrrmag', ), 'connection_write' => array ( 0 => NULL, 1 => 'mtbrrmag', ), 'text_lookup_original_cache' => array ( 8102 => '', 8103 => '', 46 => 'Local', 2864 => 'Junior Redakteur', 47 => 'Standard member', 2865 => '', ), 'text_lookup_cache' => array ( 8102 => 'return unserialize("a:6:{i:0;a:0:{}i:1;a:0:{}i:2;s:10:\":container\";i:3;N;i:4;N;i:5;s:0:\"\";}"); ', 8103 => '', 46 => '', 2864 => '', 47 => '', 2865 => '', ), 'table_exists_cache' => array ( ), 'static_ob' => Database_Static_mysql::__set_state(array( )), ))



File'/opt/lampp/htdocs/mtbrrmag/data/attachment.php'
Line'49'
Function'attachments_script'
Args

Back to the top
 
Posted
Rating:
#64550
Avatar

Fix attached.

Attachment
sources/hooks/systems/attachments/catalogue_entry.php
» Download: catalogue_entry.php (1.23 Kb, 103 downloads so far)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#64553
Avatar

Well-settled

Chris,

Thanks very much for the fix. Just tested the fix and confirm the issue is being resolved.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: