Page 1 of 1

Page broken after updating CGUserDirectory

Posted: Mon Jun 24, 2013 7:28 am
by urheat
Everything worked fine until I updated
CGUserDirectory 1.4
FrontEndUsers 1.21.16
CGExtensions 1.35
CGSimpleSmarty 1.6.2
Uploads 1.14.4
(CMSMS is 1.11.7, PHP 5.3.26)


If I search user and search finds something, the result page is broken. The source code starts:
</__body>
<div id="ncleanblue">

There is an error message in the bottom of the page:

Code: Select all

Fatal error: Call to protected method CGUserDirectory::_smarty_getpropertysummary_url() from context '' in /html/tekijadb/tmp/templates_c /CGUserDirectory^ac69684c16de39b421bf9566272cf53b2cc8f802.module_db_tpl.CGUserDirectory; summary_Sample.php on line 155
You can test this here: http://aatosmedia.fi/tekijadb/index.php ... ory-search

If the search doesn't find anything, the page is fine.

Same goes with the "{CGUserDirectory prop="sijainti" uselike=1 propval="a%"}" -tag. If there something to list, page is broken.

System Information is fine, though "Test Curl Version version 7.15.5, minimum recommended version is 7.19.7"

Nothing in Admin log.

Re: Page broken after updating CGUserDirectory

Posted: Mon Jun 24, 2013 7:45 am
by staartmees
always clear the cache of the website after an upgrade.

Re: Page broken after updating CGUserDirectory

Posted: Mon Jun 24, 2013 7:52 am
by urheat
staartmees wrote:always clear the cache of the website after an upgrade.
Thanks, but done that. No effect.

Re: Page broken after updating CGUserDirectory

Posted: Mon Jun 24, 2013 9:30 am
by Jo Morg
urheat wrote:There is an error message in the bottom of the page:

Code: Select all

Fatal error: Call to protected method CGUserDirectory::_smarty_getpropertysummary_url() from context '' in /html/tekijadb/tmp/templates_c /CGUserDirectory^ac69684c16de39b421bf9566272cf53b2cc8f802.module_db_tpl.CGUserDirectory; summary_Sample.php on line 155
The error seems to point to the summary template you are using with CGUserDirectory. Something there appears to be triggering the error. Check the template tags against the module help.

Re: Page broken after updating CGUserDirectory

Posted: Mon Jun 24, 2013 5:11 pm
by urheat
Jo Morg wrote:
urheat wrote:There is an error message in the bottom of the page:

Code: Select all

Fatal error: Call to protected method CGUserDirectory::_smarty_getpropertysummary_url() from context '' in /html/tekijadb/tmp/templates_c /CGUserDirectory^ac69684c16de39b421bf9566272cf53b2cc8f802.module_db_tpl.CGUserDirectory; summary_Sample.php on line 155
The error seems to point to the summary template you are using with CGUserDirectory. Something there appears to be triggering the error. Check the template tags against the module help.
Thanks Jo Morg!

I'm using sample templates. I even reset the templates from CGUserDirectory > Default Templates > Reset to factory defaults

I was wondering that if this error has to do something with Multi Select List, cause the if you check the broken page, the error message appears after first Multi Select List information:
http://aatosmedia.fi/tekijadb/index.php ... eturnid=17

Here is the information of current user (that page ain't broken):
http://aatosmedia.fi/tekijadb/index.php ... eturnid=17

Re: Page broken after updating CGUserDirectory

Posted: Mon Jun 24, 2013 5:40 pm
by calguy1000
It's a bug.

I'll be releasing a new version in the next day or two.
you need to change that function from protected to public in CGUserDirectory.module.php