Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iconv issue while install baikal-flat on apache-1.3.42_php-5.5.6_mips #244

Closed
meisterlei opened this issue Jun 9, 2014 · 4 comments
Closed

Comments

@meisterlei
Copy link

Setting:
installing baikal 0.27 on a broadband router fritzbox wlan fon 7390 (linux debianlike mips) with apache-1.3.42_php-5.5.6_mips

i firstly got this minor issue with writeable db
DB file is not writable. Please give write permissions on file '/var/media/ftp/mods/apache/htdocs/baikal-flat/Specific/db/db.sqlite'
which easily is solved, but maybe could be done by the installer automaticly

and the more bigger issue is that the installing process stops while trying to use iconv()
i had to comment out line 495-497 in baikal-flat/Core/Frameworks/Flake/Util/Tools.php while getting this error,
than everything works fine

exception 'ErrorException' with message 'iconv(): Unknown error (22)' in /var/media/ftp/mods/apache/htdocs/baikal-flat/Core/Frameworks/Flake/Util/Tools.php:496
Stack trace:
#0 [internal function]: Baikal\Framework::exception_error_handler(8, 'iconv(): Unknow...', '/var/media/ftp/...', 496, Array)
#1 /var/media/ftp/mods/apache/htdocs/baikal-flat/Core/Frameworks/Flake/Util/Tools.php(496): iconv('UTF-8', 'ASCII//TRANSLIT', '')
#2 /var/media/ftp/mods/apache/htdocs/baikal-flat/Core/Frameworks/Flake/Controller/Page.php(58): Flake\Util\Tools::stringToUrlToken('')
#3 /var/media/ftp/mods/apache/htdocs/baikal-flat/Core/Frameworks/Flake/Controller/Page.php(86): Flake\Controller\Page->getMetaKeywords()
#4 /var/media/ftp/mods/apache/htdocs/baikal-flat/admin/install/index.php(84): Flake\Controller\Page->render()
#5 {main}

this truly happens while iconv is available
(from phpinfo.php)
iconv
iconv support enabled
iconv implementation unknown
iconv library version unknown

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

@ghinda
Copy link

ghinda commented Nov 3, 2014

@meisterlei did you manage to find a work-around for the issue? I'm having the same issue on openwrt with lighttpd.

exception 'ErrorException' with message 'iconv(): Unknown error (2)' in /www/baikal/Core/Frameworks/Flake/Util/Tools.php:496

@meisterlei
Copy link
Author

i remember deleting the (obviously) unneccessary lines in

|/www/baikal/Core/Frameworks/Flake/Util/Tools.php:496
|

(so that were 2 or 3 beginning with 496)
my actual Tools.php looks on line 496-498 like this

            // if(function_exists("iconv"))

{

            //      $sString = iconv('UTF-8', 'ASCII//TRANSLIT',

$sString);
// }

the double slashes means i made this if function just a comment, turned
it off if you like

than - everything works fine

i think the error happens while baikal try to find out if iconv is set
and than iconv is not properly set ..
or something similar
i have iconv (found out with a phpinfo.php) - but it wont work so i
decid to turn o this check

hope this helps
On 03.11.2014 20:40, Ionut Colceriu wrote:

@meisterlei https://github.com/meisterlei did you manage to find a
work-around for the issue? I'm having the same issue on openwrt with
lighttpd.

|exception 'ErrorException' with message 'iconv(): Unknown error (2)' in /www/baikal/Core/Frameworks/Flake/Util/Tools.php:496
|

@ghinda
Copy link

ghinda commented Nov 3, 2014

Thanks! That did the trick.

netgusto pushed a commit that referenced this issue Nov 4, 2014
@netgusto
Copy link
Member

netgusto commented Nov 4, 2014

Thanks ! Fixed in c3b3ffa.

@netgusto netgusto closed this as completed Nov 4, 2014
netgusto pushed a commit that referenced this issue Nov 26, 2014
Former-commit-id: c3b3ffa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants