test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • elektrastudio Friend
    #155702

    Hi all.

    I had a problem installing the quickstart package on my server. On my local development XAMPP it worked perfectly, but on my (dedicated) server it displayed the following error:

    Warning: preg_match() [function.preg-match]: Unknown modifier ‘c’ in /home/zottweb/public_html/rt/templates/ja_portfolio/plugins/system/jat3/core/template.php on line 988

    You can see the template and the error in http://www.zott.com.br/rt/templates/ja_portfolio
    Notice that both versions of PHP (server and XAMPP) are the same, 5.2.9, for compatibility purposes. I don’t know if both apache versions are the same, unfortunately, but I can dig that info if this may be the culprit.

    Thank you.

    Jonathan Roza
    http://www.zott.com.br

    gray Friend
    #360513

    Maybe you have different error reporting mode.

    It could be set in Joomla’s Global Params, “Server” tab; try “simple” mode (“none” could be used also, but not preferable).

    elektrastudio Friend
    #360516

    Hi Gray,

    Even with error reporting turned off, the error persists.
    But the template should work without errors. Masking the error could lead to a worse problem.

    Thank’s.

    Jonathan Roza
    http://www.zott.com.br

    gray Friend
    #360517

    Could you please find that file and post lines 987-989 here on the forum.

    elektrastudio Friend
    #360519

    function processReplateURL($matches) {
    $buffer = JResponse::getBody ();
    if (!preg_match (‘#<head>.*’.preg_quote ($matches[0]).’.*</head>#smU’, $buffer)) { //by pass if this url in head
    $url = T3Path::getURL ( $matches [4] );
    if ($url) {
    return “{$matches[1]}={$matches[2]}$url{$matches[2]}”;
    }
    }
    return $matches [0];
    }

    gray Friend
    #360521

    Actually, this is not line 988 in the latest version of T3 Framework.
    In any case, as far as I could understand from the code, problem could be in the cache. Try to clean all cache (or disable it). Also check if you didn’t move settings of cache/tmp paths from local host to the server, they should be different.

    elektrastudio Friend
    #360526

    Hi Gray,

    I installed dirctly from quickstart package into the server, not from a backup in dev area.
    I also installed it in my dev area, and there it worked fine. I will paste line 988 from there (when I download the file from the server it becomes double spaced, reason unknown).

    Here it goes lines 986 to 995, so you get the whole function:

    function processReplateURL($matches) {
    $buffer = JResponse::getBody ();
    if (!preg_match ('#<head>.*'.preg_quote ($matches[0]).'.*</head>#smU', $buffer)) { //by pass if this url in head
    $url = T3Path::getURL ( $matches [4] );
    if ($url) {
    return "{$matches[1]}={$matches[2]}$url{$matches[2]}";
    }
    }
    return $matches [0];
    }

    I checked it against what I posted before, and it is the same code.

    Thank’s again for all the help.

    Jonathan Roza
    http://www.zott.com.br

    Khanh Le Moderator
    #360579

    Hi elektrastudio,
    Can you please PM me your site information (admin, ftp), I will try to fix the problem.

    elektrastudio Friend
    #360610

    Hi Khanh,

    Thanks a lot for your help.

    Best wishes.

    Jonathan Roza
    http://www.zott.com.br

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 3 voices, and was last updated by  elektrastudio 14 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum