Items filtered by date: December 2015

Not sure exactly what this fix is for.

{code class="brush: css"}.article-content (line 310) { overflow-x: visible; overflow-y: visible; } .fp-article-content (line 312) { padding-left: 145px; } {/code}

possibly replace with 10px

Published in Joomla

I recently installed Joomla, and everything went smoothly, I had it running for a few days, then suddenly I could not login to Admin, I just get caught in a continuous loop, I do not get any error messages (except when I purposely type wrong password)


forcing https for admin seems to create admin loop (this works for me)

Go into your site either through your web hosting control panel or FTP access, find your configuration.php file which should be found the main root of the site. Edit the file, you should find; "var $force_ssl = '1';" switch this to 0 to disable it. Upload the file back to the site and check the administration page if it logs through http://

or

My Joomla 1.5 install was working great until I turned on SSL. After that I got the admin login loop. I fixed that by changing the $live_site variable as mentioned above. So, this may not be a solution to all of you who are having problem with this issue.

or

use htaccess to force https

- set session.use_cookies = 1 in php.ini did not work


Possibly permmisions or password

  • make sure joomla user plugin is published (jos_plugins)
  • the User Joomla! was 0 0 1 0 0 , I changed it to 0 1 1 0 0 (meaning I changed "published" from 0 to 1)
  • `jos_plugins` SET published='1' WHERE name='User - Joomla!'
  • Joomla login component permmsions (jos_plugins)
  • the User Joomla! was 1 1 1 0 0 , I changed it to 0 1 1 0 0 (meaning I changed "access" from 1 to 0)
  • try changing the administrator password
  • update tkjx45_users set password=MD5('MyPassword') where usertype = "Super Administrator"
Published in Joomla
Sunday, 06 May 2012 11:49

Command Prompt from DVD Boot

This is useful to get the command prompt on windows vista and windows 7 without having to go all the way through the startup check.

  • press Shift and F10
Published in Windows Vista

These are key combinations to activate System Recovery/Factory Restore so you can restore a laptop or desktop to factory settings with the onboard system recovery image.

System Recovery is not system restore. System restore is a windows only system

these key presses and procedures vary from brand to brand.


  • Acer - Alt + F10
  • Dell - Ctrl + F11 , Ctrl + F10
  • HP - F10
  • HP/Compaq - On startup, press f11 to launch Recovery Manager
    Pressing the f11 key during the startup on a computer with an HP factory image will start the system recovery process even if the prompt is not displayed
  • Fujitsu -
Published in Hardware
Sunday, 06 May 2012 00:00

KSOD - Black screen of death

KSOD (Black Screen of Death) issues can be caused by many different issues, the quickest and easiest method of fixing this is running system restore if possibly. This error is a kernel level error and are very tricky for the end user to fix, even if it is possible because this error cannot always be fixed. I think 'K' in ksod stands for kernel.


Things i have tried

  • chdsk
  • chkdsk /r
  • could be windows event log service
  • virus hook on shell
  • black screen virus
  • faulty update - remove recent updates
  • run system restore
  • disable all services and reboot (this did not make any difference)
  • disable msconfig items manually
  • try permission reset with SubInACL command line thing and that batch file in console
  • try reset registry permissions
  • try adding the prevx fix url in to the start up group thing in the registry so it autoruns itself
  • "C:\Program Files\Internet Explorer\iexplore.exe" "http://info.prevx.com/download.asp?GRAB=BLACKSCREENFIX"
  • try injecting updated graphics drivers
  • check HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit   make sure it says
    C:\Windows\system32\userinit.exe
    it could be as subtle as a . on the end ie C:\Windows\system32\userinit.exe.
  • is it loading a corrupt hibernation file. delete the hibernation file to remove this issue
  • malware scan

Other Things To Try

What Worked For Me

KSOD is cause by incorrect permissions from a failed update usually. Fix the file permissions and the update will complete allowing windows to run.

  • scan with malware and comodo CIS - remove all shit
  • then add everyone to C:\ (of the client drive) permissions and apply to all (i also include administrators)
    or
    use a permissions utility to restore permissions such as the one from tweaking.com or SubInACL
  • put back in client machine when you can read the files

when i put it back in the client machine a windows update carried on and might explain why i could not run sfc or indeed why the PC failed.

Links

Published in Windows Vista
  • to get universal printing PCl6 to work, make sure that the 1300 PCL driver is installed and working
  • then install universal printer driver PCL6 and select the port the 1300 PCL6 is printing on.
  • even if it is installed, it must alter some printer files of the 1300
Published in Printers

To have all my emails downloaded and stored locally i need to use pop3. I also want to have the benefits of IMAP and PUSH email so i instantly get my messages on my phone. The following settings are the best.

  • setup email in outlook with pop3, with the setting leave on server for 14 days
  • setup all the required emails on the phone via IMAP using K-9 Mail (or GMAIL for the inbuilt Google account)
  • when setting up the IMAP accounts on the Android phone with K-9 use the PUSH email option
  • setup all shared pop3 accounts up as IMAP in outlook aswell. This is so sent items can be copied into outlooks sent folder if required

These settings give the best of both worlds and cover me if Googles servers go down, and i can use my own email accounts with PUSH email.

Published in Email

The following code should work on all php setups.

The following code needs to be entered on the file/thread you want the variables to be altered for. This code will on temporarily alter the enviromental variables and they will revert to what they were after the file has finished running. There is also some additional code to display the php info so you can see the variables have been altered, this section can be deleted.

<? 
$phptemp = "/var/www/vhosts/example.com/httpdocs/php.ini";
putenv("PHPRC=$phptemp");

/* the one below works */
apache_setenv("PHPRC", $phptemp);
$yo = getenv('PHPRC');
echo $yo;
phpinfo();
?>
Published in PHP
Sunday, 06 May 2012 00:00

Setting the timezone with PHP

because webservers can be located anywhere in the world yet be used predominately in one region you need to be able to cahnge the timezone on the webserver, however the time stamp never changes.


You can set a default time zone for your server from the configuration file (php.ini) at the line:

Timezones are available here http://www.php.net/manual/en/timezones.europe.php

http://php.net/date.timezone

[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York

Published in PHP
Sunday, 06 May 2012 00:00

Disable Magic Quotes in a PHP script

Magic quotes are the bain opf any programmers life. If you commit something to a my sql database that has unescaped characters, php by default will escape them with a backslash '/' and this can mess all your code up.

The following shows you how you can detect if magic quotes are running and how to disable them.


Detect if magic quotes are running

Run this php code on your web server

<?php
if(get_magic_quotes_gpc())
	echo "Magic quotes are enabled";
else
	echo "Magic quotes are disabled";
?>

Disable magic quotes

If you alter the following code in your php.ini will disable magic quotes. You might als be able to use a php variable declaration but this will be less permanent.

; Magic quotes

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

 

Published in PHP
Page 68 of 96