MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Spacedust on 2012-12-28, 16:29:32
-
After updating my production server to from 6.1.12 to latest Kloxo-MR I got: Internal Server Error 500 after logging on Kloxo page and such error in logs:
PHP Fatal error: Call to a member function isAdmin() on a non-object
Mustafa please do something with this /script/fixweb running chown -R it takes ages to complete and I can't have so many hours of downtime to rebuild all Apache config.
I have to restore 6.1.12 from backup to work normally.
-
This issue appear on Kloxo or for website?.
-
Directly on Kloxo page after login. Sometimes I was able to login but Kloxo loaded incompletly just a few menus and all other things were left blank.
This is preety old system it was updated from 6.1.6 to 6.1.10, 6.1.11 and 6.1.12 etc.
I wasn't even able to run any website, because updater failed completly on these very long chown -R.
-
Is there any in-place upgrade ?
Just to copy some files and run /script/fixweb to build new Apache config ?
-
Original place is /usr/local/lxlabs/kloxo/files/apache and you can copy to /home/apache. And then running 'sh /script/fixweb'.
Files inside '/script/' is from '/usr/local/lxlabs/kloxo/pscript' and '/usr/local/lxlabs/kloxo/httpdocs/htmllib/script'
-
I will try to copy my current system to a different test server and upgrade manually to Kloxo-MR then if all will be working fine I will just copy Kloxo folder and Apache configs (with changed IP's) inside.
-
Sometimes, switch webserver and or php will be fix some issue.
-
Sometimes, switch webserver and or php will be fix some issue.
I wasn't even able to do this, because Kloxo wasn't loading properly.
I'm in the middle of switching server so I will be able to report if any errors will occur.
-
Take a look:
(http://dodajfotke.pl/images/s8b6twkr.jpg)
(http://dodajfotke.pl/images/r1cbjnxh.jpg)
-
As I know this issue appear on early upload.
Resolve:
1. extract /usr/local/lxlabs/kloxo/file/skeleton.zip to /usr/local/lxlabs/kloxo/httpdocs/login (if didn't found ./images directory)
2. Copy /usr/local/lxlabs/kloxo/file/default_index.php /usr/local/lxlabs/kloxo/httpdocs/login/index.php
3. Copy /usr/local/lxlabs/kloxo/file/login_inc.php /usr/local/lxlabs/kloxo/httpdocs/login/inc.php
3. Copy /usr/local/lxlabs/kloxo/file/login_inc2.php /usr/local/lxlabs/kloxo/httpdocs/login/inc2.php
-
As I know this issue appear on early upload.
Resolve:
1. extract /usr/local/lxlabs/kloxo/file/skeleton.zip to /usr/local/lxlabs/kloxo/httpdocs/login
2. Copy /usr/local/lxlabs/kloxo/file/default_index.php /usr/local/lxlabs/kloxo/httpdocs/login/index.php
3. Copy /usr/local/lxlabs/kloxo/file/login_inc.php /usr/local/lxlabs/kloxo/httpdocs/login/inc.php
3. Copy /usr/local/lxlabs/kloxo/file/login_inc2.php /usr/local/lxlabs/kloxo/httpdocs/login/inc2.php
I will try :) I'm having 1:1 image of my production system so I can work without any hurry now.
Still lphp.exe ../bin/fix/fixweb.php --nolog is running. It takes a lot of time for 2000 domains even if they contain no data at all.
-
Login page works ok now, but after login I just got this:
(http://dodajfotke.pl/images/r1cbjnxh.jpg)
-
Some errors:
16:52 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:53 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
16:55 Jan/02/2013: Could not write the file '/usr/local/lxlabs/kloxo/httpdocs/.php.err' with permissions: 0644
and some more related to language (I'm using Polish):
[02-Jan-2013 16:55:10] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/lib/oldheader.php on line 12
[02-Jan-2013 16:55:10] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 16:55:11] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/ajaxcore.php on line 148
[02-Jan-2013 16:55:17] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/lib/oldheader.php on line 12
[02-Jan-2013 16:55:17] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 16:55:18] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/ajaxcore.php on line 148
[02-Jan-2013 16:58:01] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/lib/oldheader.php on line 12
[02-Jan-2013 16:58:02] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 16:58:03] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/ajaxcore.php on line 148
[02-Jan-2013 16:58:03] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 16:58:05] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 16:58:07] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 16:58:10] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 16:58:14] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 4530
[02-Jan-2013 16:58:18] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 4530
[02-Jan-2013 17:03:06] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/lib/oldheader.php on line 12
[02-Jan-2013 17:03:07] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 17:03:08] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/ajaxcore.php on line 148
-
Please help me it's really urgent. My dedicated server is expiring on sunday and I won't be able to test this again.
I can send you my test server details if you need it.
-
Also, one more thing:
-bash: lphp.exe: command not found
But lxphp is installed:
rpm -qi lxphp
Name : lxphp Relocations: (not relocatable)
Version : 5.2.17 Vendor: (none)
Release : 5.lx.el5 Build Date: pon 24 wrz 2012 14:14:20 CEST
Install Date: pi? 28 gru 2012 00:32:57 CET Build Host: mr2kvm.potissima.com
Group : System Environment/Base Source RPM: lxphp-5.2.17-5.lx.el5.src.rpm
Size : 36310244 License: PHP License
Signature : (none)
URL : http://www.lxcenter.org (http://www.lxcenter.org)
Summary : a LxCenter customized package for php
Description :
PHP 5 is a powerful apache module that adds scripting and database connection
capabilities to the apache server. This version includes the "php_cgi" binary
for suExec and stand alone php scripts too.
BuildRequires: rpmlib
BuildRequires: bzip2-devel, curl-devel >= 7.9, db4-devel, expat-devel
BuildRequires: gmp-devel, aspell-devel >= 0.50.0
BuildRequires: httpd-devel >= 2.0.46-1, libjpeg-devel, libpng-devel, pam-devel
BuildRequires: libstdc++-devel, openssl-devel, sqlite-devel >= 3.0.0
BuildRequires: zlib-devel, pcre-devel >= 6.6, smtpdaemon, readline-devel
BuildRequires: bzip2, perl, libtool >= 1.4.3, gcc-c++
BuildRequires: gdbm-devel, libc-client-devel, libmhash-devel, libmcrypt-devel
BuildRequires: mysql-devel, postgresql-devel
Obsoletes: php-dbg, php3, phpfi, stronghold-php, lxphp <= 5.2.1
Requires: libmhash
Reinstalled lxphp and it seems to be working, but /script/cleanup didn't helped.
[02-Jan-2013 23:40:33] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:33] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:33] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:33] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:34] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/lib/oldheader.php on line 12
[02-Jan-2013 23:40:35] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/htmllib.php on line 5880
[02-Jan-2013 23:40:35] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:35] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[02-Jan-2013 23:40:36] PHP Fatal error: Call to undefined function get_plural() in /usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/ajaxcore.php on line 148
-
Try 'rpm -ivh lxphp-5.2.1-400.i386 ; yum reinstall lxphp.x86_64'.
-
rpm -ivh lxphp-5.2.1-400.i386 ; yum reinstall lxphp.x86_64
error: opening lxphp-5.2.1-400.i386 failed: no such file or directory
Did you mean rpm -e lxphp.i386 ?
Installed:
lxphp.x86_64 0:5.2.17-5.lx.el5
Still nothing works and such errors:
[03-Jan-2013 10:26:55] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[03-Jan-2013 10:26:55] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
-
I just installed Kloxo on VirtualBox and it seems it's missing /usr/local/lxlabs/ext/php/lib/ folder at all:
[root@localhost ~]# tail -f /usr/local/lxlabs/ext/php/error.log
[03-Jan-2013 12:11:09] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/l ocal/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[03-Jan-2013 12:11:09] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/l ocal/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
-
I just installed Kloxo on VirtualBox and it seems it's missing /usr/local/lxlabs/ext/php/lib/ folder at all:
[root@localhost ~]# tail -f /usr/local/lxlabs/ext/php/error.log
[03-Jan-2013 12:11:09] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/l ocal/lxlabs/ext/php/lib/mysql.so' - /usr/local/lxlabs/ext/php/lib/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[03-Jan-2013 12:11:09] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/l ocal/lxlabs/ext/php/lib/mbstring.so' - /usr/local/lxlabs/ext/php/lib/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
Don't care about above error. I still found this issue for lxphp (latest build) on Centos 6 but nothing on Centos 5. Remember, Centos 6 using php 5.3.x as default and lxphp still php 5.2.x.
If you want no error log just change to '; error_log = /usr/local/lxlabs/ext/php/error.log' on '/usr/local/lxlabs/ext/php/etc/php.ini'.
-
Ok, but my Kloxo update from 6.1.12 to 6.5.0 still doesn't work !
What is the reason for this ? Maybe something needs to be changed inside database ?
I've even copied the whole /usr/local/lxlabs folder from working machine to my test production server and it's still not working. Only part of Kloxo panel is loading.
(http://dodajfotke.pl/images/r1cbjnxh.jpg)
-
Got it ! Something is wrong with one of the tables inside Kloxo database.
It all started to work when I copied a clean database from my VirtualBox test machine to test production server.
-
I found it - it was sp_specialplay table. Is this table something that's very important ?
The table is very large (about 54 MB). Maybe I will send you it and you will see why Kloxo-MR is failing with this ?
If these are only logs inside it then I'm safe to remove it, but still wondering that Kloxo-MR might fail when there will be a lot of logs so it's worth to fix it before it happens.
BTW - Does Kloxo-MR work properly with exlusive IP's for client ? There is such option in Kloxo official where you can assign a IP to specific customer so it will be exclusive just for him.
-
Mustafa please answer my questions !
-
Information like skin for each user save in sp_specialplay. It's danger delete for this table content.
On my latest test, Kloxo-MR ready for IP assign.
-
Information like skin for each user save in sp_specialplay. It's danger delete for this table content.
On my latest test, Kloxo-MR ready for IP assign.
I've replaced it with a table from clean Kloxo installation.
-
Upgraded again with clean sp_specialplay table and again I got an error so there is something wrong in Kloxo-MR !
-
Same issue, erro login after reinstall
Warning: include_once(./inc.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/lxlabs/kloxo/httpdocs/login/index.php on line 91
Warning: include_once() [function.include]: Failed opening './inc.php' for inclusion (include_path='.:/php/includes') in /usr/local/lxlabs/kloxo/httpdocs/login/index.php on line 91
before and after reinstall some sh /script command : file not found.
website still runing = nginx+httpd+djbdns mysql 5.5 innodb
-
Same issue, erro login after reinstall
Warning: include_once(./inc.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/lxlabs/kloxo/httpdocs/login/index.php on line 91
Warning: include_once() [function.include]: Failed opening './inc.php' for inclusion (include_path='.:/php/includes') in /usr/local/lxlabs/kloxo/httpdocs/login/index.php on line 91
before and after reinstall some sh /script command : file not found.
website still runing = nginx+httpd+djbdns mysql 5.5 innodb
Copy from /usr/local/lxlabs/kloxo/file/login_inc.php to /usr/local/lxlabs/kloxo/httpdocs/login/inc.php
-
Copy from /usr/local/lxlabs/kloxo/file/login_inc.php to /usr/local/lxlabs/kloxo/httpdocs/login/inc.php
solved