User tags problem

General project discussion. NOT for help questions.
Post Reply
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

User tags problem

Post 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???
viebig

Re: User tags problem

Post 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}
[
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post 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
Last edited by Terabyte on Sat Sep 20, 2008 4:57 pm, edited 1 time in total.
viebig

Re: User tags problem

Post by viebig »

that´s odd. I´ll try to reproduce it
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post 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.
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post 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?
Last edited by Terabyte on Sat Sep 20, 2008 8:18 pm, edited 1 time in total.
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post 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?
Last edited by Terabyte on Sun Sep 21, 2008 6:39 pm, edited 1 time in total.
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post 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.
viebig

Re: User tags problem

Post 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.
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post 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.
Last edited by Terabyte on Wed Sep 24, 2008 11:02 pm, edited 1 time in total.
viebig

Re: User tags problem

Post 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.
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post by Terabyte »

Really nobody using user tags and see a problem. I have installed it on another system and experience the same problem.
Terabyte
Forum Members
Forum Members
Posts: 79
Joined: Fri Aug 18, 2006 8:57 am

Re: User tags problem

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: User tags problem

Post 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
Last edited by Anonymous on Sat Nov 15, 2008 1:38 pm, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: User tags problem

Post 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
Post Reply

Return to “General Discussion”