Home arrow Forum Latest posts of: kellerkind
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 03:51:21 PM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: [1] 2
1  Joomla Hacks / Joomla-SMF 2.0.x / Compression + JSMF + Opera = Gibberish on: August 16, 2007, 01:55:56 PM
Hello,

If I set [X] GZIP Page Compression in Joomla, and JSMF in wrapped mode, Opera 9 displays only Gibberish dump of the compressed Page. After some investigations, I found out that the HTTP Header in wrapped Mode missing the "Content-Encoding: gzip" Line. All other Joomla Sites and SMF unwrapped contain this Header. FF and IE don't care the missing declaration and display the page uncomplaining

The complete Trace:
Request from Opera:
Code:
GET /forum/ HTTP/1.1
User-Agent: Opera/9.22 (Windows NT 5.1; U; de)
Host: www.internationaloldstars.de
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: de-DE,de;q=0.9,en;q=0.8
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
If-Modified-Since: Fri, 10 Aug 2007 16:54:37 GMT
Connection: Keep-Alive
Answer JSMF wrapped:
Code:
HTTP/1.1 200 OK
Date: Fri, 10 Aug 2007 17:20:45 GMT
Server: Apache
X-Powered-By: PHP/5.2.3
Set-Cookie: PHPSESSID=xxxxxxxxxxxxxxxxx; path=/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: private
Pragma: no-cache
Set-Cookie: xxxxxxxxxxxxxxxxxxx=-; path=/
Last-Modified: Fri, 10 Aug 2007 17:20:47 GMT
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1
answer Joomla Main:
Code:
HTTP/1.1 200 OK
Date: Fri, 10 Aug 2007 18:10:29 GMT
Server: Apache
X-Powered-By: PHP/5.2.3
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: xxxxxxxxxxxxxxxxx=-; path=/
Content-Encoding: gzip
Last-Modified: Fri, 10 Aug 2007 18:10:30 GMT
Cache-Control: post-check=0, pre-check=0
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

Ok, now the clou:
If I change the User Agent in Opera to:
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
All thinks works fine.
wtf?!

Some idea anybody?
JSMF 2.0.0.2
SMF 1.1.3
J! 1.0.13
2  Joomla Hacks / Joomla-SMF 2.0.x / Re: Joomla Patch error (Fatal error: Allowed memory size...) on: August 08, 2007, 01:46:16 AM
My issue has stopped.
Did you update your php.ini or only the smf.php files?
I´m update the php.ini bevor i read this topic and your post here. With the step 16 > 24 some posts more are available, step 24 > 32 brought some improvement too, but it never disappeared completely. Then I read your hint and chanced the smf.php too, but this has no effect for me.

When you say bbcode how much is a lot?
Uhm. I would post a Link here, but it is not 100% reproducible. Iam afraid the Error only occours if the user is logged in? Would be logical, this are the only chances for 2.0.2.1 as far as i know.

If you have console to your server try this in the dir that you have your website files in:
grep -lir "memory_limit" *
In sms.class.php line 339 looks to be allocating memory for an array.
Would have to study code to see what it is doing but double check your memory seetings for php.ini and smf.php
This Engine is my root Server, I configured it from ground on. Webserver and Php build from Source - I know where I have to search my php.ini  Tongue  Grin
3  Joomla Hacks / Joomla-SMF 2.0.x / Re: Joomla Patch error (Fatal error: Allowed memory size...) on: August 07, 2007, 01:37:51 PM
hmm. I dont know. Something is wrong.
Until the 2.0.2.1 I'm run with memory_limit = 16M. First I tried 24, now I´m @ 32M and still:

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 126895 bytes) in /home/xxx/components/com_smf/smf.class.php on line 339, referer: http://www.example.com/forum/board,1.0/ 

it´s looks like Board Threads/Posts with a lot of bbcode increase the memory usage drastical. bevor 2.0.2 this error never occurs  Embarrassed         

exrace fix brought no improvement for me.                                                     
4  Joomla Hacks / Joomla-SMF 2.0.x / Re: JSMF 2.0 Final on: July 26, 2007, 03:13:01 AM
I should be able to get a 1.0.13 ONLY version working this weekend!
Hero!
Karma ++

 Wink
5  Joomla Hacks / Joomla-SMF 2.0.x / Re: SMF 2.0 wrapped Breaks Smileys on: July 23, 2007, 02:47:02 PM
Did you treid 2.0.2a off the bridge.
That does the Trick.
Thanks, didn't know 2.02a exists. In DL Section there is only a 2.0.2

for the Board Search:
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,3309.0
 Grin

Now just a Joomla 1.0.13 Fix, and I'm Back in Business  Tongue  Wink
6  Joomla Hacks / Joomla-SMF 2.0.x / SMF 2.0 wrapped Breaks Smileys on: July 22, 2007, 08:02:48 AM
Hello,

JSMF 2.0.0.2 in Wrapped Integration Mode breaks the Smiley Feature on SMF. No Posts are possible. (See Attach)
There are some Smiley's with Attribute "Popup" on my Site. This is the generated Sourcecode without Bridge:
Code:
var smileyPopupWindow;

function moreSmileys()
{
var row, i;

if (smileyPopupWindow)
smileyPopupWindow.close();

smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>');
smileyPopupWindow.document.write('\n\t<head>\n\t\t<title>Weitere Smileys</title>\n\t\t<link rel="stylesheet" type="text/css" href="http://www.internationaloldstars.de/board/Themes/default/style.css" />\n\t</head>');
smileyPopupWindow.document.write('\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">W&auml;hlen Sie einen Smiley</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">');

for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, '&quot;');
smileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; ' + smileys[row][i][0] + '&quot;, window.opener.document.forms.postmodify.message); window.focus(); return false;"><img src="http://www.internationaloldstars.de/board/Smileys/default/' + smileys[row][i][1] + '" alt="' + smileys[row][i][2] + '" title="' + smileys[row][i][2] + '" style="padding: 4px;" border="0" /></a> ');
}
smileyPopupWindow.document.write("<br />");
}
As you see, there is a Doctype, Head and Body Attribute for the new Popupwindow. The Bridge Feature "Merge all Head etc Tags" just cut all this Stuff out of the generated html:
Code:
<!-- begin Modul MainBody -->
\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">W&auml;hlen Sie einen Smiley</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">');

for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, '&quot;');
smileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; ' + smileys[row][i][0] + '&quot;, window.opener.document.forms.postmodify.message); window.focus(); return false;"><img src="http://www.internationaloldstars.de/board/Smileys/default/' + smileys[row][i][1] + '" alt="' + smileys[row][i][2] + '" title="' + smileys[row][i][2] + '" style="padding: 4px;" border="0" /></a> ');
}
smileyPopupWindow.document.write("<br />");
}

smileyPopupWindow.document.write('</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\">Fenster schlie&szlig;en</a></td></tr>\n\t\t</table>\n\t\n');
smileyPopupWindow.document.close();
}
// ]]></script>
Anybody else noticed this? Some Workarounds?

SMF is 1.1.3
7  Joomla Hacks / Joomla-SMF 1.1.x / Re: SMF Security Vulnerability? on: July 12, 2006, 12:57:50 AM
[...] there is no risk to JHacks users. 
as expected  Wink thx.
8  Joomla Hacks / Joomla-SMF 1.1.x / SMF Security Vulnerability? on: July 11, 2006, 01:57:54 AM
Wolverine, is Joomla-SMF affected?
http://www.securityfocus.com/bid/18924/

The Bridge has the SMF.PHP too, and missing the

Code:
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

in:

components/com_smf/smf.php
administrator/components/com_smf/config.smf.php
administrator/components/com_smf/install.smf.php
administrator/components/com_smf/rdf.php

maybe some other too?

see also:
http://forum.joomla.org/index.php/topic,75668.0.html

I added this to this Files, without loosing some Functionality, so i think it cannot harm?
9  Joomla Hacks / Joomla-SMF 1.1.x / Re: SMF Discussbot 1.4.3 on: June 08, 2006, 02:55:51 AM
This is how it must be. 0 is for unlimited.

Bad thing is that I get broken HTML code [...]
No. "This Page Is Valid XHTML 1.0 Transitional!"
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.internationaloldstars.de%2F

(This might have nothing to do with the discussbot [...]
yes.
Quote
Especially like this awesome forum autopopulate feature!
Yeah, is a nice Spambot  Cool I've got ~200 "New" [News]Threads in less than 24h, really funny. Also this confusion about posts like: [News]Happy Christmas 2004! or [News]Service Pack1 for WindowsXP Now available. He, the last 3 days i cant sleep while laughed all the time about Replys like "Is X-mas now in Jun?" funny, funny, funny...
10  Joomla Hacks / Joomla-SMF 1.1.x / Re: SMF Discussbot 1.4.3 on: May 30, 2006, 08:20:42 AM
Nice. But...
Quote from: W3C
Below are the results of checking this document for XML well-formedness and validity.

   1. Error Line 225 column 733: end tag for "img" omitted, but OMITTAG NO was specified.

      ...nt/discuss.gif" alt="Discuss Topic" > (0) Kommentare</a>         </td>

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

      ✉
   2. Info Line 225 column 652: start tag was here.

      ...,com_smf/Itemid,104/topic,1132.new/"><img style="border:0px;" src="/mambots/c

Line 477 in smf.discussbot.php
"'.$discuss_image.'" alt="Discuss Topic" /> ('.$replies.') '.$link_text.'</a>';

 Cool
11  Joomla Hacks / Joomla-SMF 1.1.x / Re: Can't access topics on forum: SMF 1.1RC2, Joomla 1.0.8, Joomla-SMF 1.1 on: March 02, 2006, 07:52:00 AM
Quote
more htaccess.txt
#####  SOLVING PROBLEMS WITH COMPONENT URL's that don't work #####
# SPECIAL NOTE FOR SMF USERS WHEN SMF IS INTEGRATED AND BRIDGED
# OR ANY SITUATION WHERE A COMPONENT's URL's AREN't WORKING
#
# In both the 'Standard SEF', and '3rd Party or Core SEF' sections the line:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# May need to be uncommented.  If you are running your Joomla/Mambo from
# a subdirectory the name of the subdirectory will need to be inserted into this# line.  For example, if your Joomla/Mambo is in a subdirectory called '/test/',# change this:
# RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
# to this:
# RewriteCond %{REQUEST_URI} ^(/test/component/option,com) [NC,OR] ##optional -
see notes##
#
##################################################### 
12  Joomla Hacks / Joomla-SMF 1.0.x / Re: Bridge not working on: January 11, 2006, 05:30:29 AM
[X]Solved
Error by st$p$d User
this is my smfs index.php
Code:
if (!defined('WIRELESS'))

//JOOMLAHACKS.COM
if (defined('_VALID_MOS')) {
$modSettings['integrate_login'] = 'integrateLogin';
$modSettings['integrate_redirect'] = 'integrateRedirect';
$modSettings['integrate_exit'] = 'integrateExit';
$modSettings['enableCompressedOutput'] = '0';
error_reporting(E_ALL ^ E_NOTICE);
}
if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));
I forget to remove the first if (!defined('WIRELESS'))  Roll Eyes
Dont update smf before first coffee!
13  Joomla Hacks / Joomla-SMF 1.0.x / Re: Bridge not working on: January 11, 2006, 02:11:04 AM
Quote
Another person had a problem with showing a blank page and it turned out to be webhost related.  Search these forums for blank page and you will find the topic.
Before update i used Joomla 1.0.5 / SMF RC1 /Bridge 1.02 (+discusbot + recent topic + smf login +sef Url +[...]) and all the stuff works fine. I love this bridge. So i dont think is some (web)server related. however, i search this board, and found:
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,1037.15
(blank white index.php Joomla 1.0.4 -Page after publish Forum Link) - no answer after "contact your hosting company and ask them to resolve the issue" - but i am the hosting company for myself  Undecided
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,1058.0
(Joomla SEF don´t work > blank white page at all components)
 <-not solved
 Cry
14  Joomla Hacks / Joomla-SMF 1.0.x / Re: Bridge not working on: January 10, 2006, 10:25:27 AM
Hi, Wolverine
Does the backend work?
Yes. Everything looks fine, except it does not work.  Cry
klick patch on Backend does realy patch the files, i controlled joomla index.php, smf index.php and subs-post.php all have some joomlahacks code inside  Cool
No errors in php or apache log, the itemid 97 is in mysql table menu linked to componentid 19, in table components id 19 is com_smf
I would reinstall Joomla. 
I have the index.php from the Joomla 1.0.5 Patch new copied, except this i found no files the Bridge would changes. After remove the old Bridge 1.0.2 i remove all entrys to smf in the menue and component tables befor patch again.
15  Joomla Hacks / Joomla-SMF 1.0.x / (SOLVED)Bridge not working on: January 10, 2006, 08:31:07 AM
Hi.
SMF RC2 Joomla 1.0.5 Bridge 1.0.2a
Update smf from rc1 to rc2 + uninstall old Bridge (1.0.2) + install new Bridge 1.0.2a + all the things from: http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,1143.msg4998#msg4998

Result is a blank Page ( http://www.internationaloldstars.de/component/option,com_smf/Itemid,97/ )

I remove all other mods, deinstall recent topics, diskusbot [...] nothing works.

Any clue?  Cry
Pages: [1] 2


Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
i-Vibe.com
Search Contact About Advertise Blogs Topsites Submit News Register Login