Lightquick Web Design - High Quality, Low Cost

LightQuick Web Design - Latest News

We are just in the process of creating a new CMS site for The Bear at Home Inn at North Moreton. The site is built using Joomla 1.5 featuring a warm and welcoming style adopted from the original HTML site. The new site is a wide screen format with two simple to navigate menus. The site aims to be as fun a place to be as the pub itself.
You are here:
  • Decrease font size
  • Default font size
  • Increase font size
Fixing Joomla 1.0 for php 5.3.x PDF Print
Written by Dean Beedell   
Tuesday, 20 September 2011

Fixing Joomla 1.0 for php 5.3.x

Joomla 1.0 has a few things that break under PHP 5.3.x, as a number of users have found over time.

Following upgrading my version of PHP recently, I needed to do my homework, and have found a few simple workarounds to get Joomla 1.0 functioning on PHP 5.3.x until I can get to the stage where I can update the last few sites I have in Joomla 1.0.

To make joomla 1.0.x compatible to PHP 5.3.x, there's a few steps.

First up, if you're getting content not showing on most pages, go to Function.php files  your directory on /public_html/includes/Cache/Lite.

Then replace:

$arguments = func_get_args();

with

$arguments = func_get_args();
$numargs = func_num_args();
for($i=1; $i < $numargs; $i++){
$arguments[$i] = &$arguments[$i];
}

in includes/Cache/Lite/Function.php. It fixes compatibility view issues for Joomla 1.0.x on php 5.3.x.

 

 

 

com_contact White Screen / vcard.class.php error

Depending on which other components you have in your 1.0 site, there may be other items to be fixed.

com_contacts uses the includes/vcard.class.php file, which also needs to be modified to avoid this error:

Fatal error: Cannot redeclare quoted_printable_encode() in includes/vcard.class.php on line 74

In vcard.class.php around line 36 is the function quoted_printable_encode. This ends up declaring twice, causing the error, so you can prevent the error and fix the error by checking if the function already exists, and if it does, PHP ignores the function declaration. Adding the green lines of code before and after the existing function clears the problem.

if(!function_exists('quoted_printable_encode')) {
 function quoted_printable_encode($input, $line_max=76) {
 /* ... */
 }
}

Original post for helping with this solution.

Timezones

Another PHP 5.3 change is to how the timezones are set.

The easiest solution I've found for fixing that aspect is to place some timezone code in the .htaccess file for your site. Assuming you're using it for SEF URLs already, it will have been renamed from htaccess.txt, so you should just need to edit your .htaccess file.

Add the following, chaning your timezone to your required timezone:

# set the server timezone
SetEnv TZ Australia/Victoria
Comments (0)Add comments

Write comment

busy
Last Updated ( Tuesday, 20 September 2011 )
 
< Prev   Next >

Steampunk Yahoo Widget

How about something special for the weekend sir?

Steampunk Yahoo clock/calendar widget download

Lightquick have a nice little Yahoo widget for you to download. Steampunk Stamp WidgetClick on the image above.

Do you need a stamp with that madam?

Yahoo Widget Downloads

Download the Joomla Multi-Sit... here

Joomla Multi-Sit...

Downloads: 32
Avg. Rating:
StarStarStarStarStar(5)

Download the Steampunk Orrery... here

Steampunk Orrery...

Downloads: 1146
Avg. Rating:
StarStarStarStarStar(2)

Download the Steampunk Weathe... here

Steampunk Weathe...

Downloads: 48169
Avg. Rating:
StarStarStarStarStar(38)

Download the Cyberpunk Yahoo ... here

Cyberpunk Yahoo ...

Downloads: 3296
Avg. Rating:
StarStarStarStarStar(15)

Download the Steampunk CPU / ... here

Steampunk CPU / ...

Downloads: 7894
Avg. Rating:
StarStarStarStarStar(26)

Virtuemart Assistance

If you require assistance regarding VM or Joomla then please contact lightquick here...

Contact me here

Site Total Page Views

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday898
mod_vvisit_counterYesterday997
mod_vvisit_counterThis week3805
mod_vvisit_counterThis month15874
mod_vvisit_counterAll Visitors480825

Site Last Modified

Site Last Modified:Thursday 17 May 2012, 12:09

Secure Login Form

Log In / Sign Up

Find us on the FreeIndex directory under Web Designers