PHP Warning (Invalid CRT parameters detected ) by qTranslate on WordPress

If you use qTranslate plugin with WordPress, you may see many warning message like below information on Apache and PHP with Windows OS.

qTranslate Warning: Invalid CRT parameters detected in … \wp-content\plugins\qtranslate\qtranslate_core.php on line 447

I will give you 1 method to resolve this problem if you want to remove many warning messages

How to remove warning messages

if you want to remove many warning messages, you should edit ‘… \wp-content\plugins\qtranslate\qtranslate_core.php‘ like below codes.

$search[] = '/(([^%])%4|^%4)/'; $replace[] = '${2}'.$date; // date U
$format = preg_replace($search,$replace,$format);

// Add Windows
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$format = str_replace('%P','%p',$format);
}

return $before.strftime($format, $date).$after;

It is very easy probrem.
You cannot use ‘%P’ that format in strftime function ( PHP ) with Windows OS.
You should use ‘%p’ if you want to remove warning messages with Windows OS.

%p UPPER-CASE 'AM' or 'PM' based on the given time Example: AM for 00:31, PM for 22:23
%P lower-case 'am' or 'pm' based on the given time Example: am for 00:31, pm for 22:23

Advertisements

Prettyphoto And RTL

Find all text-indent properties in PrettyPhoto CSS file (They are about 6 in my version) and change all their value from negative to positive.That’s it!

You can use an advanced text editor and just replace
text-indent:-
to
text-indent:

and you are done.
Cheers
(If when viewing a photo you see horizontal scroll, add “overflow: hidden;” in each CSS rule that you changed its text-indent)

Microsoft Windows 7 Enterprise x64 SP1 Integrated June 2012-BIE

Microsoft Windows 7 Enterprise x64 SP1 Integrated June 2012-BIE

Thanks To Psyko666 it worked

just run in Command Prompt

slmgr.vbs -ipk WXVYB-BYQHF-4MK6M-KYXDX-VQQHR

Windows 7 Enterprise/Professional MAK Key [04-09-2012]

WXVYB-BYQHF-4MK6M-KYXDX-VQQHR

Hi Mahmoud Saed

new update

Windows 7 Enterprise And Professional MAK Key 19.07.2012

W9VYM-YB9GG-VCX9V-9PW3W-C9PBJ
[Remaining Activation: 3258]

YJM3H-QWH84-F9X8V-7MG8V-9VD2F
[Remaining Activation: 1295]

BP8GG-WJMJ4-RQQPD-TRHVT-9QCJP
[Remaining Activation: 924]

FGC7B-X8RV6-4XW6Q-T77KC-RK3MK
[Remaining Activation: 805]

QX9KK-XQJXM-QPCBR-QF8DV-VVPXF
[Remaining Activation: 107]

/*******************************/
NEW

Windows 7 Enterprise Key 11 feb. 2013

TQ47V-F64FR-KPW3Q-HMCM9-7W4RC
slmgr.vbs -ipk TQ47V-F64FR-KPW3Q-HMCM9-7W4RC