campaign details display error

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

campaign details display error

Postby DruRoland » Thu May 30, 2013 1:14 pm

When I look at the details page of any campaign, all fields are blank, and, in /var/log/apache2/error_log I get this:
[Thu May 30 11:01:29 2013] [error] [client 10.0.0.40] PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in /srv/www/htdocs/vicidial/admin.php on line 21840, referer: http://dialer2.livecallconnect.com/vici ... gn_id=XXXX

This started happening after SVN update to latest.
Version: 2.8b0.5
SVN Version: 1985
DB Schema Version: 1350
DB Schema Update Date: 2013-05-28 12:41:22
2x ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
Debian 7 MySQL 5.5 server 4-core 16GB RAM Master & Slave
18 seats, outbound/blended with full recording
DruRoland
 
Posts: 52
Joined: Wed Jan 23, 2013 8:33 pm

Re: campaign details display error

Postby williamconley » Thu May 30, 2013 2:57 pm

did you update the db?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: campaign details display error

Postby DruRoland » Thu May 30, 2013 3:04 pm

Of course.
Specifically, I ran mysql -h sql.intern -u vicidbadmin -pXXXXXXXXXXXXXXX -force --database=asterisk < /usr/src/astguiclient/trunk/extras/upgrade_2.8.sql
2x ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
Debian 7 MySQL 5.5 server 4-core 16GB RAM Master & Slave
18 seats, outbound/blended with full recording
DruRoland
 
Posts: 52
Joined: Wed Jan 23, 2013 8:33 pm

Re: campaign details display error

Postby DruRoland » Thu May 30, 2013 3:55 pm

I'm not sure where to go from here. That error isn't exactly very descriptive. I'm guessing the preceding SELECT statement bombs, returning 0 instead of an array?
2x ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
Debian 7 MySQL 5.5 server 4-core 16GB RAM Master & Slave
18 seats, outbound/blended with full recording
DruRoland
 
Posts: 52
Joined: Wed Jan 23, 2013 8:33 pm

Re: campaign details display error

Postby DruRoland » Thu May 30, 2013 4:06 pm

Running the SELECT statement directly produces this:
ERROR 1054 (42S22): Unknown column 'survey_wait_sec' in 'field list'

So, I'm missing a column. upgrade_2.8.sql doesn't mention that column, but upgrade_2.6.sql does: ALTER TABLE vicidial_campaigns ADD survey_wait_sec TINYINT(3) default '10';

I ran the ALTER TABLE, and everything's working again now, though I'm very confused as to how I've been able to upgrade/restart/mess with campaigns/etc all this time.
2x ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
Debian 7 MySQL 5.5 server 4-core 16GB RAM Master & Slave
18 seats, outbound/blended with full recording
DruRoland
 
Posts: 52
Joined: Wed Jan 23, 2013 8:33 pm

Re: campaign details display error

Postby DomeDan » Mon Jun 03, 2013 6:38 am

You need to run the upgrade_2.6.sql before upgrade_2.8.sql when upgrading from 2.4
as recently mentioned here http://www.vicidial.org/VICIDIALforum/v ... 989#p99989
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 84 guests