Support Center

Recent questions

About Koken

This Help Center provides support for Koken, a free content management system designed for photographers, artists and designers.

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Koken and PHP/Win

Thomas G

Jul 31, 2017 11:18AM EDT

Regarding to my question "systempath not found" with PHP 7.0.20 in login or admin-setup":

At first: I found the problem in Koken and fixed it for myself. ;-)

Affected: All koken installations under Windows, incl. PHP 5.x, PHP 7 ....

I have located the problem in the file "koken/app/koken/DarkroomUtils.php", where a routine for detecting of an installed Linux Graphic converter is:

cmd.exe /c "convert -version 2> /dev/null"
cmd.exe /c "gm convert -version 2> /dev/null"
cmd.exe /c "/usr/bin/convert -version 2> /dev/null"
cmd.exe /c "/usr/bin/gm convert -version 2> /dev/null"
cmd.exe /c "/usr/local/bin/convert -version 2> /dev/null"
cmd.exe /c "/usr/local/bin/gm convert -version 2> /dev/null"
cmd.exe /c "/usr/local/sbin/convert -version 2> /dev/null"
cmd.exe /c "/usr/local/sbin/gm convert -version 2> /dev/null"
cmd.exe /c "/bin/convert -version 2> /dev/null"
cmd.exe /c "/bin/gm convert -version 2> /dev/null"
cmd.exe /c "/opt/local/bin/convert -version 2> /dev/null"
cmd.exe /c "/opt/local/bin/gm convert -version 2> /dev/null"
cmd.exe /c "/opt/ImageMagick/bin/convert -version 2> /dev/null"
cmd.exe /c "/opt/ImageMagick/bin/gm convert -version 2> /dev/null"
cmd.exe /c "/usr/local/ImageMagick/bin/convert -version 2> /dev/null"
cmd.exe /c "/usr/local/ImageMagick/bin/gm convert -version 2> /dev/null"


The result of this calls was written in the Apache-Core-File (not vHost or PHP-Error.log) and without any timestamps ...

My Fix: I have written a small wrapper with "if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ..." around the function "testShell($path)".

Up 0 rated Down

Team NetObjects Koken Agent

Aug 01, 2017 10:46AM EDT

The system path not found is probably due to Windows not having /dev/null. Your fix will disable detection of external image libraries on Windows. It might be better to remove the “> /dev/null” pipe from the shell_exec func call on ln:115. Then confirm your image libs are in your Windows path. If this works we’ll add it to the next Koken update.

Answer this question

support@koken.me
http://assets3.desk.com/
false
koken
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete