Page 1 of 1

[Closed] CGExtension 1.45 is adding port number 0 to URL

Posted: Wed Jul 22, 2015 1:21 pm
by Yogibear
Hi Everyone,

Update
I have double checked and it seems that the problem is definitely with CGExtension 1.45. I had another server where everything was the same except that it had CGExtensions 1.42.2 and the problem was not happening there. I upgraded that server to CGExtensions 1.45 and the problem appears there as well now. I have to get this fixed for my client so for the time being I need to go back to version 1.42.2 of CGExtensions on the live site.

Does anyone else have the same problem? Should I list this as a bug?

I’m running CMSMS version 1.11.11

I have CGFeedback installed version 1.6.7

I have set it up to allow users to post a review on a travel tour.

The feedback is moderated. When the administrator has approved a review, the reviews are shown on the same page.

I am using these 2 tags in the page template:

Code: Select all

{CGFeedback policy="session" commenttemplate="Reviews"    }
{CGFeedback action='summary' summarytemplate='TT_Reviews' }
So the form to allow users to comment appears above the approved reviews.

But very strangely when the page is displayed, the form that is generated looks like below – notice that the feedback_origurl has a :0 added after the root url.
This means that when the user adds a review and hits submit they are not taken back to the same page, which they should be.

Generated form:

Code: Select all

<div class="cgfeedback_addcomment">
<form enctype="multipart/form-data" class="cms_form" action="http://www.myurl.co.uk/page_url" method="post" id="m970d0moduleform_1">
<div class="hidden">
<input type="hidden" value="CGFeedback,m970d0,default,0" name="mact">
<input type="hidden" value="394" name="m970d0returnid">
<input type="hidden" value="session" name="m970d0policy">
<input type="hidden" value="Reviews" name="m970d0commenttemplate">
<input type="hidden" value="__page__" name="m970d0key1">
<input type="hidden" value="394" name="m970d0key2">
<input type="hidden" value="" name="m970d0key3">
<input type="hidden" value="http://www.myurl.co.uk:0/page_url" name="m970d0feedback_origurl">
</div>

 <div class="review_comment">
  <div><span class="review_labels">Your Name:</span> 
    <input type="text" required="" value="" maxlength="255" size="45" name="m970d0author_name">
  </div>
  <div><span class="review_labels">Review title: </span> 
    <input type="textarea" required="" value="" maxlength="255" size="94" name="m970d0title">
  </div>
  <div><span class="review_labels">Review:</span>
    <textarea required="" id="mt_m970d0comment" name="m970d0comment" cols="80" rows="15"></textarea> 
  </div>
  
  <button name="m970d0submit">Submit</button>
  </div>

</form>

</div>
I have tried adding a $root_url to the config.php file but this doesn’t help.

I believe that the URL that CGFeedback uses is derived from CGExtensions cge_url. So I am wondering where CGExtensions gets the cge_url from? And also why a :0 is being added to the URL (It looks like it might be a port number by I can’t see why a port number would be added).

Any help or pointers gratefully accepted.