Printing error: 401

Category: Community Answers 6 years ago
Hello,

When registered users attempt to print a from the survey results screen, a 401 error is returned:

401
You are unauthorized to perform this operation.

Super users have no problem. I don't see any permission setting that would affect this. Registered users can see the reports, just cannot print.

Jordan
CS 3.7.1 / J3.3.6
Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
  • Re: Printing error: 401

    by » 6 years ago


    Here is the fix for the bug:

    Edit components/com_communitysurveys/views/response/tmpl/default_result.php and find at line 39
    href="<?php echo JRoute::_('index.php?option='.S_APP_NAME.'&view=survey&task=consolidated&id='.$this->item->id.':'.$this->item->alias.'&tmpl=component&print=1'.$itemid);?>">

    Change it to
    href="<?php echo JRoute::_('index.php?option='.S_APP_NAME.'&view=survey&task=view_result&id='.$this->item->id.':'.$this->item->alias.'&rid='.$this->responseId.'&tmpl=component&print=1'.$itemid);?>">


    Find at line 91 of components/com_communitysurveys/views/response/view.html.php
    $this->assignRef('item', $survey);

    add below code after that
    $this->assign('responseId', $response_id);

    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    Sociable | Surveys | 
    CjForum | Polls | Answers | Quizzes | Quotes | GPS ToolsCjFit | CjBlog


  • Re: Printing error: 401

    by » 6 years ago


    Fixed!

You do not have permissions to reply to this topic.

Powered by CjForum

Trending Topics

Deleting a translation string does not go to trashcan
  • 0 replies
Hi   In source language I did add text into the textarea "End...

Can't edit translation if it's a link
  • 0 replies
Hi If the translation text is a link only, it's not possible to...

Phoca Download Plugin not executed in description on survey end
  • 2 replies
HelloI use Phoca Download to display links to documents. I use this...

Missing social share buttons
  • 8 replies
Hi, The embed share is enabled but only the code is showing and no...

All questions and answers as a variable for e-mail template
  • 1 reply
Hello,unfortunately I can't find in the documentation the name of...