Author Topic: Customer problem, perhaps a vlibTemplate matter  (Read 997 times)

0 Members and 1 Guest are viewing this topic.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
Customer problem, perhaps a vlibTemplate matter
on: Fri, 31. January 2003 - 16:57:02
A PHD customer has this problem:



Quote
I get the following:



[sample text on Web Page]

NEW CASE - Create a new case for a customer9 


[sample URL for redirection ]

http://mydomain/PowerHelpDesk/9/usr_InsertCase.php



This 9 gets appended everywhere

I'm sure I'm doing something basic wrong here so any help would be appreciated.



For your information I presumed this 9 was basically equivalent to a  (tab) character, so I made sure to remove whitespace from config.php, adm_index.php and adm_index.htm




See this post for details:

How to , links in txt?



My template uses:

Code: [Select]
a href=tmpl_var name='yoursite'/usr_insertCase.phph3tmpl_var name='lang_aindex_newcase'/h3/a



Perhaps the { > combination is the problem. Hm, it wasn't meant to be this way, so I fix it anyway. But I have no problem with it on my server ...



Any idea?

releasedj

  • Guest
Customer problem, perhaps a vlibTemplate matter
Reply #1 on: Fri, 31. January 2003 - 19:45:53
I just spent half an hour trying to figure this out but with no luck.

I downloaded your software and couldn't find any problems. The fact that the 9 appears after every template tag would suggest that somehow vlibTemplate is involved with the problem.

Maybe there's an error in the way the files were uploaded to his webserver!
Maybe the problem is that his Version of PHP has a bug with PCRE functions! I'm not sure. I'm searching the php bugs Db now to check it out.


Regards,

Kelvin

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
Customer problem, perhaps a vlibTemplate matter
Reply #2 on: Sat, 01. February 2003 - 17:40:39
I appreciate your work very much.



Here is the URL:

http://www.metaltree.co.uk/PowerHelpDesk



His templates looks fine:

http://www.metaltree.co.uk/PowerHelpDesk/tpl/header.htm



Example:

Code: [Select]
tmpl_var name='lang_logged_in_as' btmpl_var name='PHP_AUTH_USER'



He posted his PHP version (see the his post for further information):

OS: Linux RedHat 7.2

Apache: 1.3.14

PHP: 4.03pl1 (Global Settings: safe_mode on, magic_quotes_gpc on, max_execution_time 900)



He is validating/testing PHD. I could live with telling him to update PHP to keep us from further searching ...

releasedj

  • Guest
Customer problem, perhaps a vlibTemplate matter
Reply #3 on: Sat, 01. February 2003 - 20:10:28
I have a hunch that it is perhaps a bug in this version of PHP with the amount of arguments you can capture with preg_replace (this is just a hunch).

To see if this is the problem, in the vlibTemplate.php file that he is using, scroll down to line 1224 (approx.), you should see a line that looks like this:

Code: [Select]

$newline = $args9;



Try changing this to:

Code: [Select]

$newline = '';



This should tell you whether the problem is what I think it is.
If this is the problem, and probably even if it isn't, I shall probably be removing this parametre from vlibTemplate.

Kind regards,

Kelvin

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
Customer problem, perhaps a vlibTemplate matter
Reply #4 on: Tue, 04. February 2003 - 17:15:51
Problem seems to be solved.

Quote
This was a perfect solution. Thanks for your efforts (even though I am downlevel with regards to PHP). I will now continue evaluating PowerHelpDesk. Thanks again.

by BarryC

releasedj

  • Guest
Customer problem, perhaps a vlibTemplate matter
Reply #5 on: Tue, 04. February 2003 - 19:32:32
Cool!