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

It is impossible to add a trunk #3

Closed
mbike2000ru opened this issue Dec 18, 2016 · 13 comments
Closed

It is impossible to add a trunk #3

mbike2000ru opened this issue Dec 18, 2016 · 13 comments

Comments

@mbike2000ru
Copy link

When adding a trunk:

This log comes out with 500 reply:

PHP Fatal error: Call to undefined method Provider::set() in /usr/ictfax/sites/all/modules/ictpbx/ictcore/trunk/ictpbx_trunk.module on line 305, referer: http://localhost:2031/?q=ictcore/trunk/addnew

@tahiralmas
Copy link
Member

Probably you are using newer ICTCore ( i.e 0.7.1 ) with older ICTFAX modules, please update your ictpbx directory from /usr/ictfax/sites/all/modules with latest ictpbx directory from this repository.

@mbike2000ru
Copy link
Author

I downloaded the latest master.zip
I took ictpbx from it and moved it
mv /usr/ictfax/sites/all/modules/ictpbx /home/
[root@Centos ictfax-master]# mv ictpbx /usr/ictfax/sites/all/modules/
anyway - the same error

[Sun Dec 25 03:17:02 2016] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Sun Dec 25 12:16:51 2016] [error] [client 10.71.90.7] PHP Fatal error: Call to undefined method Provider::set() in /usr/ictfax/sites/all/modules/ictpbx/ictcore/trunk/ictpbx_trunk.module on line 305, referer: http://localhost:2031/?q=ictcore/trunk/addnew
[Sun Dec 25 12:25:10 2016] [error] [client 10.71.90.7] PHP Fatal error: Call to undefined function ICT\Core\do_login() in /usr/ictfax/sites/all/modules/ictpbx/ictcore/trunk/ictpbx_trunk.module on line 305, referer: http://localhost:2031/?q=ictcore/trunk/addnew

@mbike2000ru
Copy link
Author

what correct vertion should I use? If I WGET the newest zip file-> it gives even table mismatch. So what version should I use to avoid such cases?

@mbike2000ru
Copy link
Author

ICT\Core\CoreException: User not found in ICT\Core\User->load() (line 250 of /usr/ictcore/core/User.php).

It gives me this error when I tryed to make a trunk.
I updated the YUM repositories, I made git clone the latest version of ictfax,

Still it gives me the error with "user not found"

@tahiralmas
Copy link
Member

tahiralmas commented Jan 9, 2017

Probably backend (ictcore) user table out of sync from GUI user table, to sync both tables please read "4.2 USER SYNCHRONIZATION" from http://ictfax.org/content/ictfax-installation-guide-centos-fedora

Further if you have updated ictcore from 0.7.0 to 0.7.1, then use attached sql file to update your database.
Otherwise we recommend you to create new database.

update.zip

@mbike2000ru
Copy link
Author

INSERT INTO usr (username, passwd, email, active, date_created, created_by) SELECT name, pass, mail, 1, UNIX_TIMESTAMP(), 1 FROM web_users WHERE uid > 0;
ERROR 1136 (21S01): Column count doesn't match value count at row 1
actually there is no columns mismatch but I encounter this error any time I want to syncronize usr and web_user

@tahiralmas
Copy link
Member

probably there is an issue with trigger, please use following code to drop and recreate usr_insert trigger
DROP TRIGGER usr_insert;
DELIMITER |
CREATE TRIGGER usr_insert AFTER INSERT
ON usr FOR EACH ROW BEGIN
INSERT INTO account (account_id, type, username, passwd, passwd_pin, first_name, last_name, phone, email, address,
active, date_created, created_by, last_updated, updated_by)
SELECT NULL, 'extension', NEW.username, NEW.passwd, LEFT(RAND()*999999, 4), NEW.first_name, NEW.last_name, NEW.phone,
NEW.email, NEW.address, NEW.active, NEW.date_created, NEW.usr_id, NULL, NULL;
END;
|
DELIMITER ;

@mbike2000ru
Copy link
Author

it helped to syncronize but the problem with adding a trunk remains.
I tried to install another copy of ictfax in my home VM - and I can add a trunk without any errors.

@tahiralmas
Copy link
Member

there may a version mismatch between ICTFAX and ICTCore code, to be functional both system must be same version. You have to update your installation, In case of database you can use above attached update.zip file.

@mbike2000ru
Copy link
Author

I removed and installed once again, I see that it is newest version. I sycronized the user.
ICT\Core\CoreException: User not found in ICT\Core\User->load() (line 250 of /usr/ictcore/core/User.php).
is it possible to add what is needed by hand so as not to raize this exeption

@tahiralmas
Copy link
Member

tahiralmas commented Jan 27, 2017

we made few changes / bug fixes, please update your system with "yum update ictcore"

@mbike2000ru
Copy link
Author

I reinstalled from scratch and the issue removed (I successfully added a trunk)

@tahiralmas
Copy link
Member

tahiralmas commented Feb 12, 2017 via email

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

2 participants