Page 1 of 1
User tags problem
Posted: Sat Sep 20, 2008 12:46 pm
by Terabyte
This error in incredible!
Trying to output a link in a user tag I created and I get blank screen if I use all 4 variables (strings) in the link.
If only 3 variables are present than it is no problem - doesn't matter which three variables (string). But when all 4 are present I get just blank screen.
Code: Select all
echo "<a href=\"http://$lankurl\" target=\"_blank\" title=\"$lanktitle\">$lankname</a> - $lankdec <br />";
This is only a problem in 1.4.1. Previous version were ok and the user tag worked fine!
Is it a problem in Smarty or???
Re: User tags problem
Posted: Sat Sep 20, 2008 3:27 pm
by viebig
well, this should work the code is correct.
Code: Select all
echo '<a href="http://'.$lankurl.'" target="_blank" title="'.$lanktitle.'">'.$lankname.'</a> - '.$lankdec.' <br />';
Try turning error_reporting on, try using {debug}
[
Re: User tags problem
Posted: Sat Sep 20, 2008 4:42 pm
by Terabyte
I get this when debug is on:
Code: Select all
Notice: Undefined index: image in *:\******\******\wwwroot\tmp\templates_c\Printing^%%CC^CC3^CC3377B7%%module_db_tpl%3APrinting%3Blinktemplate.php on line 21
Although I don't think this is the problem, since this error message is there also when I get an outpu with 3 variables ...
Seems like a stupid error. Been sitting and trying sveeral hours and stil I have no clu what the problem is. The code in the user tag has been used in a regular php-file outside the CMS and is working great, and have also been working great before 1.4.1
Re: User tags problem
Posted: Sat Sep 20, 2008 7:00 pm
by viebig
that´s odd. I´ll try to reproduce it
Re: User tags problem
Posted: Sat Sep 20, 2008 7:36 pm
by Terabyte
Note that the strings are coded in latin in database and before I put them in the link-code I use utf8_encode on the strings.
Re: User tags problem
Posted: Sat Sep 20, 2008 8:01 pm
by Terabyte
Seems like the strings are too long! If I shorten the string to half it shows.
Why? Any idea? Is there any limitation on the strings in the user tags?
Re: User tags problem
Posted: Sun Sep 21, 2008 5:21 pm
by Terabyte
Checked with other strings and there seems to be a limitation of the length of the strings? This limitation seems only to be present in the output above, an output of a link.
Is it possible? Somebody know why?
Re: User tags problem
Posted: Tue Sep 23, 2008 9:07 pm
by Terabyte
I've tried to view at this from different angles, but is seems to be a huge problem, not beeing able to output a link.
The limitations in string size is really very strange.
Re: User tags problem
Posted: Wed Sep 24, 2008 3:26 pm
by viebig
I tested the code, works fine for me. If try reproduce it in a external php file, If it not work, contact yout host.
Re: User tags problem
Posted: Wed Sep 24, 2008 11:00 pm
by Terabyte
viebig wrote:
I tested the code, works fine for me. If try reproduce it in a external php file, If it not work, contact yout host.
Thanks you trying to help.
As I said before, it works just fine outside the CMS. That was the first thing to try.
My host is myself
-----
When you tested it, how long strings did you put in? It is all about the length of the strings as I noticed. When the strings are long, then is is not giving an output. When they are short then it is no problem.
Re: User tags problem
Posted: Thu Sep 25, 2008 2:22 pm
by viebig
send me an exact string values that causes the problem. So, we can use the same code to debug it. Also, tell me about your server, or wamp instalation.
Re: User tags problem
Posted: Fri Oct 10, 2008 11:43 pm
by Terabyte
Really nobody using user tags and see a problem. I have installed it on another system and experience the same problem.
Re: User tags problem
Posted: Sat Nov 15, 2008 12:55 pm
by Terabyte
Well this problem is too big for me. Now and a lot of "USer Tags" I just get blank pages, escpecially when a lot of output of text has to be presented.
If anybody have seen that, please say something. I'm going really crazy here.
Debug - no errors just blank page.
Re: User tags problem
Posted: Sat Nov 15, 2008 1:22 pm
by Dee
Terabyte wrote:
If anybody have seen that, please say something. I'm going really crazy here.
Debug - no errors just blank page.
This resembles a PHP memory_limit or max_execution_time problem. Check your apache error_log, hopefully that gives more info (or raise PHP's error_reporting_level to show the errors in the browser).
Regards,
D
Re: User tags problem
Posted: Sat Nov 15, 2008 1:37 pm
by Dee
Tried this code in 1.4.1:
Code: Select all
$lankurl = "lankurl";
$lanktitle = "lanktitle";
$lankname = "lankname";
echo "<a href=\"http://$lankurl\" target=\"_blank\" title=\"$lanktitle\">$lankname</a> - $lankdec <br />";
and it works as expected, this is the output:
Code: Select all
<a href="http://lankurl" target="_blank" title="lanktitle">lankname</a> - <br />
Regards,
D