-
AuthorPosts
-
elektrastudio Friend
elektrastudio
- Join date:
- April 2010
- Posts:
- 61
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 18
- Thanked:
- 5 times in 1 posts
October 25, 2010 at 7:46 pm #155702Hi 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.brgray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
October 25, 2010 at 8:01 pm #360513Maybe 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 Friendelektrastudio
- Join date:
- April 2010
- Posts:
- 61
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 18
- Thanked:
- 5 times in 1 posts
October 25, 2010 at 8:19 pm #360516Hi 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.brgray Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
October 25, 2010 at 8:27 pm #360517Could you please find that file and post lines 987-989 here on the forum.
elektrastudio Friendelektrastudio
- Join date:
- April 2010
- Posts:
- 61
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 18
- Thanked:
- 5 times in 1 posts
October 25, 2010 at 8:44 pm #360519function 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 Friendgray
- Join date:
- October 2009
- Posts:
- 957
- Downloads:
- 0
- Uploads:
- 17
- Thanks:
- 28
- Thanked:
- 292 times in 230 posts
October 25, 2010 at 9:05 pm #360521Actually, 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 Friendelektrastudio
- Join date:
- April 2010
- Posts:
- 61
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 18
- Thanked:
- 5 times in 1 posts
October 25, 2010 at 9:33 pm #360526Hi 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.brKhanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
October 26, 2010 at 8:11 am #360579Hi elektrastudio,
Can you please PM me your site information (admin, ftp), I will try to fix the problem.elektrastudio Friendelektrastudio
- Join date:
- April 2010
- Posts:
- 61
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 18
- Thanked:
- 5 times in 1 posts
October 26, 2010 at 11:36 am #360610 -
AuthorPosts
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