Support

Forums

Contact Me

Posts Tagged 'bugs'

Bugs Bunny

Bugs Bunny is an American animated character created in 1938 at Leon Schlesinger Productions, later Warner Bros. [http://en.wikipedia.org/wiki/Bugs_Bunny]

Joomla 1.0.9 Invalid argument supplied for foreach() in frontend.php on line 85

  In order to solve  to following issues in Joomla 1.0.9

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/waltercedric.com/httpdocs/includes/frontend.php on line 85

Edit the file includes/frontend.php , this is the correct code: 

/**
* Cache some modules information
* @return array
*/
function &initModules() {
global $database, $my, $Itemid;

if (!isset( $GLOBALS['_MOS_MODULES'] )) {
$query = "SELECT id, title, module, position, content, showtitle, params"
. "\n FROM #__modules AS m"
. "\n INNER JOIN #__modules_menu AS mm ON mm.moduleid = m.id"
. "\n WHERE m.published = 1"
. "\n AND m.access <= '". $my->gid ."'"
. "\n AND m.client_id != 1"
. "\n AND ( mm.menuid = '".$Itemid."' OR mm.menuid = 0 )"
. "\n ORDER BY ordering";

$database->setQuery( $query );
$modules = $database->loadObjectList();
foreach ($modules as $module) {
$GLOBALS['_MOS_MODULES'][$module->position][] = $module;
}
}
return $GLOBALS['_MOS_MODULES'];
}
In yellow  what has changed in that  method (extract)
. "\n AND m.access <= '". $my->gid ."'"
and
. "\n AND ( mm.menuid = '".$Itemid."' OR mm.menuid = 0 )"



All credits goes to user Mathinka (JoomlaPortal.de)
Articles tagged

BSoD triggered by a memory stick

bsod.windows.xp.01 bsod.windows.xp.02

The Blue Screen of Death (also known as a stop error, BSoD, bluescreen, or Blue Screen of Doom) is a colloquialism used for the error screen displayed by some operating systems, most notably Microsoft Windows, after encountering a critical system error which can cause the system to shut down to prevent damage. According to Microsoft, bluescreens on NT-based Windows systems are usually caused by poorly-written device drivers or malfunctioning hardware. [from WIKIPedia]

Articles tagged

Apache M2Eclipse: Get rid of Duplicate resources when opening resources and types

In this small post, I’ll show you how to remove duplicated resources in the Open Resource view of Eclipse

Eclipse – M2Eclipse – Subversive

Read more: Apache M2Eclipse: Get rid of Duplicate resources when opening resources and types

Months of blue screen of death in Windows 7 Ultimate 64 bits

All my latest blue screens of Windows 7 Ultimate 64 bits, 48 inches of blue wallpapers :-)

The Blue Screen of Death (officially known as Stop error, also known as BSoD, bluescreen, or Blue Screen of Doom) is a colloquialism used for the error screen displayed by some operating systems, most notably Microsoft Windows, after encountering a critical system error that can cause the system to shut down to prevent irreversible damage to its integrity. It serves to present information for diagnostic purposes that was collected as the operating system issued a bug check. [WikiPedia]

23 Juli 2010  MEMORY_MANAGEMENT blue screen of death

00.windows7.x64.23.07.2010 01.windows7.x64.23.07.2010 02.windows7.x64.23.07.2010

20 June 2010 KERNEL_DATA_IN_PAGE_ERROR blue screen of death

03.windows7.x64.20.06.2010

16 June 2010 UNKNOW blue screen of death

00.windows7.x64.16.06.2010 01.windows7.x64.16.06.2010 02.windows7.x64.16.06.2010 03.windows7.x64.16.06.2010

 

8 June 2010 BAD_POOL_CALLER blue screen of death

00.windows7.x64.8.06.2010 01.windows7.x64.8.06.2010 03.windows7.x64.8.06.2010

Do i get more and more blue screens?

YES, the first 5 months none, (installed Windows 7 in november 2009), now i get some…2 per months, maybe it’s time to reinstall the whole operating system :-)

Would I still recommend Windows 7  64 bits?

Yes still,  if you want to start Eclipse with 2GB of RAM, you have no other choice! except switching to Linux or Mac :-)

Broken download when downloading zip files

A lot of people have tried numerous times to download files from my download section without
success, the error message was always the same

Unrecoverable error "PCLZIP_ERR_BAD_FORMAT (-10)"

Also, Some tried to unpack the zip file locally using stuffit/Winrar/7Zip and get an error suggesting
that the archive is damaged.

Only Internet Explorer users were having issues, this is because of Internet explorer not able to handle
compression of all file types. I solved the issue by changing my mod_deflate.conf which now look like the following:

<Location />
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</Location>

I found that I had to use application/x-javascript instead of application/javascript to actually get javascript files on my
server to be served compressed.

mod deflate documentation: http://httpd.apache.org/docs/2.0/mod/mod_deflate.html

Articles tagged

corrupted mos_session table

joomla_cms

 10 minutes ago, I got a strange error message:

DB function failed with error number 1016
Can't open file: 'mos_session.MYI'. (errno: 145) SQL=SELECT session_id FROM mos_session WHERE session_id=MD5('e20eafcf277b7bc0dd125357b4a1b223')
SQL =
SELECT session_id FROM mos_session WHERE session_id=MD5('e20eafcf277b7bc0dd125357b4a1b223'

I was not able to access the frontend or admin panel of my homepage. I tried to look in PHPMyAdmin the table mos_session but was getting the same error message. The only solution was to recreate the table with the following code:

DROP TABLE IF EXISTS `mos_session`;
CREATE TABLE `mos_session` (
`username` varchar(50) default '',
`time` varchar(14) default '',
`session_id` varchar(200) NOT NULL default '0',
`guest` tinyint(4) default '1',
`userid` int(11) default '0',
`usertype` varchar(50) default '',
`gid` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`session_id`),
KEY `whosonline` (`guest`,`usertype`)
) TYPE=MyISAM;

Why my table has crashed is still unknow but I am looking further in logs files...

Comments + user ratings are now allowed

You can now post comments everywhere and react to my articles (feel free to do it ;-) ), but please respect following guidelines:

  • Please keep the topic of messages relevant to the subject of the article.
  • Please keep your comments and language G-rated; because it can be read by everyone!
  • Personal verbal attacks will be deleted.
  • Please don't use comments to plug your web site. Such material will be removed

Moreover, You can also rate articles individually from 1 (poor content) to 5 (best content) 

Contact working again


The Contact section of my site is working again.

Concernig Joomla! support Please always look first  into

The server seems to handle the visitor load a little bit better
as the number of daily visitors (top at 9000) has increased
of 33% in the last 2 weeks (5900 daily)...
 

Joomla 1.0.13! admin session issues

To solve any problems with securityimages and the admin sessions (bug in Joomla 1.0.13), it avoid you being kicked out of admin every other link.
You'll have to upload these files with FTP/SCp and overwrite existing Joomla! 1.0.13 files!
BUG: Patches for Joomla 1.0.13 that includes the admin session fixes? Thanks to users in my forum


Download JoomlaPatches for Joomla 1.0.13 for securityimages 4.x only

Comments are no more working on my homepage

Comments are no more working on my homepage

This is not due to my plugin security images but more to openSEF, a very good SEF (Search Engine Friendly)/ SEO (Search Engine Optimisation) component for Joomla/Mambo:

  • SEO are techniques and changes that are made to the content and code of a web site in order to increase its rankings in the results pages of search engines and directories. These changes may involve rewriting body copy, altering Title or Meta tags, removal of Frames or Flash content, and the seeking of incoming links.


which currently is not able to rewrite correctly URL of the component akocomment (and akobook as well). This is very frustrating for me and for You as well (As I have received many emails on this). I will have t write an extensions this week end to solve this issue.

I've solved the issue with openSEF by promptly deactivating it when the user submit a for from akocomment or akobook. All You have to do is siimply edit the file /component/com_sef/sef.php

before
(Line 26)
$sefEnabled = (file_exists( $sefConfigFile ) && filesize( $sefConfigFile ) > 0);
if ($sefEnabled && $_SERVER['REQUEST_METHOD'] == 'POST' && !empty( $_POST['option'] ))
  $sefEnabled = !($_POST['option'] == 'login' || $_POST['option'] == 'login' || $_POST['option'] == 'com_phpshop');
after

$sefEnabled = (file_exists( $sefConfigFile ) && filesize( $sefConfigFile ) > 0);
if ($sefEnabled && $_SERVER['REQUEST_METHOD'] == 'POST' && !empty( $_POST['option'] ))
  $sefEnabled = !($_POST['option'] == 'login' || $_POST['option'] == 'login' || $_POST['option'] == 'com_phpshop') || $_POST['option'] == 'com_akocomment' || $_POST['option'] == 'com_akobook');

This is of course a hack and not a correct solution, akocomment URL won't be SEO friendly ! I Will have to inverst more time to write a custom extension for OpenSEF....



Donations

Thank You for supporting my work