Current time: 11-30-2024, 09:01 AM Hello There, Guest! (LoginRegister)


Post Reply 
Pages showing brace-enclosed tags
Author Message
amartin Offline
Newbie
*

Posts: 8
Joined: Jul 2009
Reputation: 0
Post: #1
Pages showing brace-enclosed tags
Hi,

I'm having some problems trying to make ispCP work on RHEL 5. I hope you can give me some tip to solve these problems.

I followed the installation procedure for Centos in the wiki, although I know this is not intended for RHEL. I installed PHP 5.3 and mod_fcgi from sources on; perl libraries were installed from source from CPAN. The problem is I must use RHEL 5 in our production environment and I cannot use RPMs from sources other than upstream (cannot change this Sad)

This is what I get on the login screen.

[Image: pantallazotrsystemmessa.png]

If you could give me a hint about how these {TAGS} are parsed by ispCP I'd be very grateful.

Thanks.
07-14-2009 11:03 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Pages showing brace-enclosed tags
There's a template engine (or sort of) which replaces the {...} by the right strings (according to the selected language).
gui/include/class.pTemplate.php

About Redhat: maybe you should try to use the CentOS install guide and the list of packages you need.

/J
07-14-2009 11:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
amartin Offline
Newbie
*

Posts: 8
Joined: Jul 2009
Reputation: 0
Post: #3
RE: Pages showing brace-enclosed tags
(07-14-2009 11:07 PM)joximu Wrote:  There's a template engine (or sort of) which replaces the {...} by the right strings (according to the selected language).
gui/include/class.pTemplate.php

About Redhat: maybe you should try to use the CentOS install guide and the list of packages you need.

/J

I'll try that tomorrow at work. I followed the CentOS guide, but didn't use rpmforge because we are told to use upstream sources when no official Red Hat packages are available (unfortunately I can't change that.)

Thanks for your quick reply!
07-15-2009 05:27 AM
Find all posts by this user Quote this message in a reply
amartin Offline
Newbie
*

Posts: 8
Joined: Jul 2009
Reputation: 0
Post: #4
RE: Pages showing brace-enclosed tags
I'm getting this warning message:
Warning: substr() expects parameter 2 to be long, string given in /var/www/ispcp/gui/include/class.pTemplate.php on line 279

This line looks like the string substitution start.
PHP Code:
$curl_b substr($data'{'$start_from); 

I'm a bit lost here, because substr receives '{' as second parameter.

Why does this work with PHP 5.2 and not with PHP 5.3?
I got it! It should be 1, instead of '{'.
PHP Code:
$curl_b substr($data1$start_from); 

My first steps in PHP Smile

Don't know why this works with PHP 5.2. Should this be this considered a bug?
(This post was last modified: 07-15-2009 09:57 PM by amartin.)
07-15-2009 09:34 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Pages showing brace-enclosed tags
Maybe PHP 5.3 handles this syntax error differently.

But I think this whole part is useless - because the "substr" is there since ispcp was started (vhcs) and nobody noticed that....

I'd rather think it should be:
$curl_b = strpos($data, '{', $start_from);

Your 1 instead of '{' is also ok, because $curl_b will never be true/positive interger... :-)

I'll do some investigations on that :-)

Thanx
/J
07-16-2009 12:43 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)