Can you please try the following to make sure that WSH is installed on your machine? The code is taken from this Microsoft Technet article.
Copy the following script, paste it into Notepad, and save it with a .VBS file extension (for example, Versions.vbs). Run the script, and it will report back the versions of Windows Script Host (WSH), VBScript, WMI, and ADSI installed on your computer. If any of the version numbers come back blank, that means that technology is not installed.
On Error Resume Next
WScript.Echo "WSH Version: " & WScript.Version
Wscript.Echo "VBScript Version: " & ScriptEngineMajorVersion _
& "." & ScriptEngineMinorVersion
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer _
& "\root\cimv2")
Set colWMISettings = objWMIService.ExecQuery _
("Select * from Win32_WMISetting")
For Each objWMISetting in colWMISettings
Wscript.Echo "WMI Version: " & objWMISetting.BuildVersion
Next
Set objShell = CreateObject("WScript.Shell")
strAdsiVersion = objShell.RegRead _
("HKLM\SOFTWARE\Microsoft\" &_
"Active Setup\Installed Components\" &_
"{E92B03AB-B707-11d2-9CBD-0000F87A369E}\Version")
If strAdsiVersion = vbEmpty Then
strAdsiVersion = objShell.RegRead _
("HKLM\SOFTWARE\Microsoft\ADs\Providers\LDAP\")
If strAdsiVersion = vbEmpty Then
strAdsiVersion = "ADSI is not installed."
Else
strAdsiVersion = "2.0"
End If
End If
WScript.Echo "ADSI Version: " & strAdsiVersion
Edit:
I find it highly unlikely that you don’t have WSH installed (as it comes installed by default and you would have had to uninstall it). Instead, please try the following:
Edit the file EGalleryBase.php located in the gallery extension folder.
There’s been a couple of comments on the review page. I already have quite a few ideas about what to add and how to make it better, I’m just very busy currently, so it might take a while.
line in error is "$WshShell->Run("php.exe $Command", 0, false);
" in "D:\wamp\www\yii\fudoshin\protected\extensions\gallery\EGalleryBase.php"
[/indent]
I’m using a PC under windows XP and WAMP 2.0 (php 5.2.6).
WSH is v5.7 ; VBscript is v5.7 ; VMI is v2600.0000 ; ADSI is v5,0,00,0
I got the error when a thumbnail has to be generated.
If I manually launch the following command into a cmd/DOS box : "php.exe D:\wamp\www\yii\fudoshin\protected\extensions\gallery\EGalleryProcessQueue.php D:\wamp\www\yii\fudoshin\images\galleries 128 128"
The thumbnails are generated and the widget runs successfully !!!
Can you bring to me some help ?
On an other hand, to have the full folder description into the Gallery page I had to correct a source file. I had to modify the "EGalleryBase::readDescription" method as following :
[indent] after line "$i = 1;" I added : "$buffer = "";"
AND I modified "$buffer = fgets($fp, 10240);" which became "$buffer .= fgets($fp, 10240);"[/indent]
Yes I’ve made a little bit of progress, but unfortunately haven’t got anywhere near a stage that will be useful to you. It’s still on my list of things to do. I’ll get there eventually, sorry it’s taking so long.