View Full Version : Installation problems
rolfdohrmann
03-14-2010, 05:17 PM
Hi,
I downloaded Hotaru and the plugins and tried to make an installation on my local pc under XAMPP/Windows. The 5 installation steps were fine. I didn't change anything in the settings section. When trying to install the plugins I got problems.
ok: SB Base
User Signin
Error:
uh-oh, file 'L:\xampplite\htdocs\hotaru/content/plugins/user-signin-0-3/user-signin-0-3.php' not found in class.metadata.php
Any idea what's going wrong?
Thanks,
Rolf
hangbowl
03-14-2010, 06:46 PM
when you extract plugins, please check into the inside of directory, because there another directory inside that directory
rolfdohrmann
03-14-2010, 06:53 PM
thanks, that's true. I removed that directory in the meantime.
however, the problem stays the same. after installing User Signin I am told 'success' but when I klick on something the screen becomes white and also 'back' doesn't work. I tried a couple of times and changed this and that but it didn't work. I wonder if this might have to do with my XAMPP on Wndows. I'm trying right now to install on my server which is Linux.
hangbowl
03-14-2010, 06:57 PM
ok, have you follow tutorial first instalation ? because if not, you'll get much problem, since the plugins need the other for dependencies.
rolfdohrmann
03-14-2010, 07:16 PM
hotaru behaves different on windows and on linux systems. after finishing the 5 installation steps on linux I am asked to login. On windows I was not asked. the installation of 'user signin' caused no problem at all. so I can continue. thanx!
hangbowl
03-14-2010, 07:33 PM
Ok, read this for step by step tutorial
http://hotarucms.org/showthread.php?335-Installing-Your-First-Plugins
rolfdohrmann
03-15-2010, 05:04 PM
Ok, read this for step by step tutorial
http://hotarucms.org/showthread.php?335-Installing-Your-First-Plugins
I installed the plugins exactly as it is described in the document. It looked as if everything went fine. I downloaded and installed another theme. Also ok. But when I try to register a new user I get the error message "CSRF error. Please try again."
That doesn't explain much. What could be the problem? I have no idea.
When I try to submit a new link as admin I get this error message:
Fatal error: Call to undefined function bccomp() in /srv/www/vhosts/speibl.com/httpdocs/hotaru/libs/extensions/Inspekt/Inspekt.php on line 872
Thanx, Rolf
sharkbyteusa
03-15-2010, 07:25 PM
I got the error in #1 until I changed the permission to 777, world writeable, on cache folder and it's subdirectories.
rolfdohrmann
03-15-2010, 08:08 PM
hi sharkbyteusa,
thanks a lot. I changed permissions for directories and files to 777 but the error message still comes up. That CSRF things has to do with security. Maybe I am not allowed to register with the same IP under two names? (admin + new user)? Very strange.
sharkbyteusa
03-15-2010, 08:26 PM
No I don't think that's it, I've registered multiple users on my local (Mac native) installation. I'm guessing it's a file permission issue, if you set the WHOLE installation to 777 just to test (it's local so why not), that would tell you if it is the problem or not. Are you sure you did these steps in installation thoroughly?
6. Files should have permissions set to 644 and folders should be set to 755, except...
7. Set /cache and its sub-folders to 777
rolfdohrmann
03-15-2010, 08:32 PM
I re-installed the system. new database tables and all this. Re-installed all plugins. Was in the plugin configuration when this error came up again:
Home » Admin Control Panel » Plugin Settings
Fatal error: Call to undefined function bccomp() in /srv/www/vhosts/speibl.com/httpdocs/hotaru/libs/extensions/Inspekt/Inspekt.php on line 872
So there really is a problem with this bccomp()
Maybe a file is corrupt? which file contains this function?
rolfdohrmann
03-15-2010, 08:41 PM
thanks for the information that the ip is not the problem.
I couldn't install the system local. got errors. so I thought it might have to do with windows. I decided to install it on my server which runs under linux. I indeed had a small success but as you see: I run again into problems. I wonder where that comes from. Maybe the package I downloaded was not ok... Maybe I should take an older one.
however,
all files have by default 644 and all folders 755. I checked this.
Cache and all sub-folders are set to 777.
I also set all files within the cache folder to 777.
rolfdohrmann
03-15-2010, 09:03 PM
OK,
1.1.2 didn't work for me. So I downloaded version 1.1.1, installed it locally. When installing the plugins it stops at the same point as it did yesterday with 1.1.2: after user signin. trying to install Widgets brings up a white screen. Yesterday and today I tried many hours to install this system. Locally and remote. It didn't work. I don't know why but if I don't get a good answer then I give up at this point. Makes no sense to try this and that. I can install Typo3, Joomla, phpBB, wordpress and everything else. But I am not able to install Hotaru. And that's very sad because the description of the system sounds great and I really would like to test it's functionality.
cheers, rolf
sharkbyteusa
03-15-2010, 09:11 PM
Fatal error: Call to undefined function bccomp() in /srv/www/vhosts/speibl.com/httpdocs/hotaru/libs/extensions/Inspekt/Inspekt.php on line 872
So there really is a problem with this bccomp()
bccomp() is a php function
http://www.php.net/manual/en/book.bc.php
These functions are only available if PHP was configured with --enable-bcmath
sharkbyteusa
03-15-2010, 09:19 PM
What version of PHP are you running?
From the Inspekt site
Dependencies:
PHP 5+ (5.2 or higher suggested)
Same question. From Hotaru's download page:
Requirements
Hotaru CMS has been tested using PHP 5.2.6 ~ 5.3.1, MySQL 5.0 and phpMyAdmin 2.11.6 ~ 3.2.5.
rolfdohrmann
03-16-2010, 04:12 AM
Thanks for your support sharkbyteusa and nick!
locally
- php 5.3.1
- mysql: 5.1.41
remote
- php 5.2.11
- mysql 5.0.67
That should be ok, right?
bccomp: took that example from php.net:
<?php
echo bccomp('1', '2') . "\n"; // -1
echo bccomp('1.00001', '1', 3); // 0
echo bccomp('1.00001', '1', 5); // 1
?>
It's here: www.speibl.com/hotaru/bccomp-test.php
and it shows:
Fatal error: Call to undefined function bccomp() in /srv/www/vhosts/speibl.com/httpdocs/hotaru/bccomp-test.php on line 4
if I google "Call to undefined function bccomp()" I get 14 hits. Seems that this problem is not very common...
Couldn't find a solution how to fix it. Wouldn't re-compile php. Don't know how to do it. So if that bccomp is a must then I seem to have a problem. Any idea?
Rolf
sharkbyteusa
03-16-2010, 04:51 AM
put a file on your site with
<?php
phpinfo();
?>
run it in the browser, look at the section 'Configure Command'
it needs to have '--enable-bcmath'
If this isn't there and you can't recompile yourself, contact your hosting provider.
** DELETE FILE afterwards
rolfdohrmann
03-16-2010, 09:01 AM
Thanks, bcmath is not included. I don't think that my hosting provider will recompile php for me, but I will ask. I guess there is no way to avoid bcmath?
I guess there is no way to avoid bcmath?
Let's have a look in /libs/extensions/Inspekt/Inspekt.php fro line 869:
$is_valid = (
is_numeric($value) // Must be able to be converted to a number
&& preg_replace("/^-?([0-9]+)$/", "", $value) == "" // Must be an integer (no floats or e-powers)
&& bccomp($value, "-9223372036854775807") >= 0 // Must be greater than than min of 64-bit
&& bccomp($value, "9223372036854775807") <= 0 // Must be less than max of 64-bit
);I'd say you could replace the bccomp lines with $value > -9223372036854775807 and $value < -9223372036854775807 for the second one. Of course, this is core code and unless it's a common issue, I'm not inclined to change it. You might want to bring it up in the Inspekt Google Group (http://groups.google.com/group/inspekt) though.
rolfdohrmann
03-16-2010, 02:05 PM
Thanks Nick,
I replaced the two lines. The error message doesn't show up anymore. That's good.
But when I try to register as a new user I get this CSRF error.
I tried to post as admin. Got an error too. Checed the error file. This is what was in it:
[16-Mar-2010 13:57:02] PHP Notice: Undefined index: votesUp in /srv/www/vhosts/speibl.com/httpdocs/hotaru/content/plugins/vote/templates/vote_button.php on line 41
[16-Mar-2010 13:57:52] PHP Notice: Trying to get property of non-object in /srv/www/vhosts/speibl.com/httpdocs/hotaru/content/plugins/vote/vote.php on line 144
[16-Mar-2010 13:57:52] PHP Notice: Trying to get property of non-object in /srv/www/vhosts/speibl.com/httpdocs/hotaru/content/plugins/vote/vote.php on line 150
What do you think Nick, do we give up or continue?
Regards, Rolf
I'm afraid I'm out of ideas Rolf. You seem to be having problems at every turn, which suggests to me that Hotaru is not compatible with your server configuration. :(
rolfdohrmann
03-16-2010, 03:42 PM
I agree completely. I'll try again when I'll have a new account somewhere.
Thanks for support and good luck for you and Hotaru!
Rolf
Cheers Rolf, hope to see you again in the future :)
This issue has reared its head again. It appears it's caused when
zend.ze1_compatibility_mode = On
in php.ini.
That setting needs to be Off.
If I find out more, I'll update this thread.
It turns out that zend.ze1_compatibility_mode is deprecated and removed from PHP 5.3.
If your server is running PHP 5.2 and you're getting "undefined index" errors for everything, add this to your hotaru_settings.php file:
ini_set('zend.ze1_compatibility_mode', 'Off');
That will solve the problem. :cool:
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.