Add Region does not add region

Asked by Martyn Breckenridge

When attempting to Add a Region to a display, nothing happens. The New Region window does not appear.

Tested in Internet Explorer (XP & Win7), Firefox and Chrome.

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Dan Garner
Solved:
Last query:
Last reply:
Revision history for this message
Martyn Breckenridge (w-m-f) said :
#1

--------------------------------------
Environment Checks
--------------------------------------
<table class="table">
    <thead>
        <tr>
                                    <th>Item</th>
                        <th data-sorter="tickcross">Status</th>
                        <th>Advice</th>
                                </tr>
    </thead>
    <tbody>
                <tr >
                                                <td>PHP Version</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP version 5.3.3 or later required. Detected 5.5.11</td>
                                            </tr>
                <tr >
                                                <td>File System Permissions</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>Write access required for settings.php, install.php and upgrade.php</td>
                                            </tr>
                <tr >
                                                <td>MySQL database (PHP MySql)</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>MySQL support must be enabled in PHP.</td>
                                            </tr>
                <tr >
                                                <td>MySQL database (PDO MySql)</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PDO support with MySQL drivers must be enabled in PHP.</td>
                                            </tr>
                <tr >
                                                <td>JSON Extension</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP JSON extension required to function.</td>
                                            </tr>
                <tr >
                                                <td>SOAP Extension</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP SOAP extension required to function.</td>
                                            </tr>
                <tr >
                                                <td>GD Extension</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP GD extension to function.</td>
                                            </tr>
                <tr >
                                                <td>Session</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP session support to function.</td>
                                            </tr>
                <tr >
                                                <td>FileInfo</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>Requires PHP FileInfo support to function. If you are on Windows you need to enable the php_fileinfo.dll in your php.ini file.</td>
                                            </tr>
                <tr >
                                                <td>PCRE</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP PCRE support to function.</td>
                                            </tr>
                <tr >
                                                <td>Gettext</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP Gettext support to function.</td>
                                            </tr>
                <tr >
                                                <td>Calendar Extension</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP Calendar extension to function.</td>
                                            </tr>
                <tr >
                                                <td>DOM Extension</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP DOM core functionality enabled.</td>
                                            </tr>
                <tr >
                                                <td>DOM XML Extension</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP DOM XML extension to function.</td>
                                            </tr>
                <tr >
                                                <td>Mcrypt Extension</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>PHP Mcrypt extension to function.</td>
                                            </tr>
                <tr >
                                                <td>Allow PHP to open external URLs</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>You must have allow_url_fopen = On in your PHP.ini file for RSS Feeds / Anonymous statistics gathering to function.</td>
                                            </tr>
                <tr >
                                                <td>DateTimeZone</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>This enables us to get a list of time zones supported by the hosting server.</td>
                                            </tr>
                <tr >
                                                <td>Large File Uploads</td>
                                                <td><span class="glyphicon glyphicon-ok"></span></td>
                                                <td>Support for uploading large files is recommended.</td>
                                            </tr>
            </tbody>
</table>

--------------------------------------
LOG Dump
--------------------------------------
Date,Page,Function,Message
"2014-10-28 17:01:48","region","AddRegion","LayoutId: 6, Width: 100, Height: 100, Top: 50, Left: 50, Name: ."
"2014-10-28 17:01:48","Layout","GetLayoutXml","IN"
"2014-10-28 17:01:48","Layout","GetLayoutXml","OUT"
"2014-10-28 17:01:47","region","AddRegion","LayoutId: 6, Width: 100, Height: 100, Top: 50, Left: 50, Name: ."
"2014-10-28 17:01:47","Layout","GetLayoutXml","IN"
"2014-10-28 17:01:47","Layout","GetLayoutXml","OUT"
"2014-10-28 17:01:46","region","AddRegion","LayoutId: 6, Width: 100, Height: 100, Top: 50, Left: 50, Name: ."
"2014-10-28 17:01:46","Layout","GetLayoutXml","IN"
"2014-10-28 17:01:46","Layout","GetLayoutXml","OUT"
"2014-10-28 17:01:44","module","","Creating new module with MediaID: 9 LayoutID: 0 and RegionID: "
"2014-10-28 17:01:44","module","","Module created with MediaID: 9 LayoutID: 0 and RegionID: "
"2014-10-28 17:01:44","layout","","Loading permissions for layoutid 6"
"2014-10-28 17:01:44","layout","IsValid","[IN]"
"2014-10-28 17:01:44","Layout","GetLayoutXml","IN"
"2014-10-28 17:01:44","Layout","GetLayoutXml","OUT"
"2014-10-28 17:01:44","timeline","","Module created with MediaID: 10 LayoutID: 6 and RegionID: 544e9026b58f7"
"2014-10-28 17:01:44","Layout","GetLayoutXml","IN"
"2014-10-28 17:01:44","Layout","GetLayoutXml","OUT"
"2014-10-28 17:01:44","module","SetMediaInformation","Existing Assigned Media XML is: \n <?xml version="1.0"?>
<root><media id="10" type="image" render="native" duration="30" lkid="9" userId="1" schemaVersion="1">
                            <options><uri>10.png</uri></options>
                            <raw/>
                    </media></root>
"
"2014-10-28 17:01:44","timeline","","GetOption uri: Set - returning: 10.png"
"2014-10-28 17:01:44","timeline","","GetOption scaleType: Not Set - returning default "
"2014-10-28 17:01:44","timeline","","GetOption align: Not Set - returning default center"
"2014-10-28 17:01:44","timeline","","GetOption valign: Not Set - returning default middle"
"2014-10-28 17:01:44","module","","Creating new module with MediaID: 10 LayoutID: 0 and RegionID: "
"2014-10-28 17:01:44","module","","Module created with MediaID: 10 LayoutID: 0 and RegionID: "
"2014-10-28 17:01:43","layout","","Loading permissions for layoutid 6"
"2014-10-28 17:01:43","layout","","Retreiving list of layouts for xibo_admin with SQL: SELECT layout.layoutID, layout.layout, layout.description, layout.tags, layout.userID, layout.xml, campaign.CampaignID, layout.status, NULL AS regionid, NULL AS lklayoutmediaid, NULL AS mediaownerid FROM layout INNER JOIN `lkcampaignlayout` ON lkcampaignlayout.LayoutID = layout.LayoutID INNER JOIN `campaign` ON lkcampaignlayout.CampaignID = campaign.CampaignID AND campaign.IsLayoutSpecific = 1 WHERE 1 = 1 AND layout.retired = 0 ORDER BY layout"
"2014-10-28 17:01:40","","","Retreiving list of layouts for xibo_admin with SQL: SELECT layout.layoutID, layout.layout, layout.description, layout.tags, layout.userID, layout.xml, campaign.CampaignID, layout.status, NULL AS regionid, NULL AS lklayoutmediaid, NULL AS mediaownerid FROM layout INNER JOIN `lkcampaignlayout` ON lkcampaignlayout.LayoutID = layout.LayoutID INNER JOIN `campaign` ON lkcampaignlayout.CampaignID = campaign.CampaignID AND campaign.IsLayoutSpecific = 1 WHERE 1 = 1 AND layout.retired = 0 "

--------------------------------------
Display Dump
--------------------------------------

--------------------------------------
Settings Dump
--------------------------------------
Setting: MEDIA_DEFAULT - Value: private

Setting: LAYOUT_DEFAULT - Value: private

Setting: defaultUsertype - Value: User

Setting: debug - Value: On

Setting: userModule - Value: module_user_general.php

Setting: defaultTimezone - Value: Europe/Berlin

Setting: mail_to - Value: <email address hidden>

Setting: mail_from - Value: <email address hidden>

Setting: jpg_length - Value: 10

Setting: ppt_length - Value: 10

Setting: swf_length - Value: 10

Setting: audit - Value: On

Setting: LIBRARY_LOCATION - Value: C:\Users\XiboDigitalDisplay\Xibo1.7.2_Library\

Setting: HELP_BASE - Value: http://www.xibo.org.uk/manual/

Setting: PHONE_HOME - Value: On

Setting: PHONE_HOME_URL - Value: http://www.xibo.org.uk/stats/track.php

Setting: PHONE_HOME_DATE - Value: 0

Setting: SERVER_MODE - Value: Production

Setting: MAINTENANCE_ENABLED - Value: Off

Setting: MAINTENANCE_EMAIL_ALERTS - Value: On

Setting: MAINTENANCE_KEY - Value: changeme

Setting: MAINTENANCE_LOG_MAXAGE - Value: 30

Setting: MAINTENANCE_STAT_MAXAGE - Value: 30

Setting: MAINTENANCE_ALERT_TOUT - Value: 12

Setting: SHOW_DISPLAY_AS_VNCLINK - Value: 0

Setting: SHOW_DISPLAY_AS_VNC_TGT - Value: _top

Setting: MAINTENANCE_ALWAYS_ALERT - Value: Off

Setting: SCHEDULE_LOOKAHEAD - Value: On

Setting: REQUIRED_FILES_LOOKAHEAD - Value: 172800

Setting: REGION_OPTIONS_COLOURING - Value: Media Colouring

Setting: LAYOUT_COPY_MEDIA_CHECKB - Value: Unchecked

Setting: MAX_LICENSED_DISPLAYS - Value: 0

Setting: LIBRARY_MEDIA_UPDATEINALL_CHECKB - Value: Unchecked

Setting: USER_PASSWORD_POLICY - Value:

Setting: USER_PASSWORD_ERROR - Value:

Setting: MODULE_CONFIG_LOCKED_CHECKB - Value: Unchecked

Setting: LIBRARY_SIZE_LIMIT_KB - Value: 0

Setting: MONTHLY_XMDS_TRANSFER_LIMIT_KB - Value: 0

Setting: DEFAULT_LANGUAGE - Value: en_GB

Setting: TRANSITION_CONFIG_LOCKED_CHECKB - Value: Unchecked

Setting: GLOBAL_THEME_NAME - Value: default

Setting: DEFAULT_LAT - Value: 51.504

Setting: DEFAULT_LONG - Value: -0.104

Setting: SCHEDULE_WITH_VIEW_PERMISSION - Value: No

Setting: SETTING_IMPORT_ENABLED - Value: 1

Setting: SETTING_LIBRARY_TIDY_ENABLED - Value: 1

Setting: SENDFILE_MODE - Value: Off

Setting: EMBEDDED_STATUS_WIDGET - Value:

Setting: PROXY_HOST - Value:

Setting: PROXY_PORT - Value: 0

Setting: PROXY_AUTH - Value:

Setting: DATE_FORMAT - Value: Y-m-d

Setting: DETECT_LANGUAGE - Value: 1

--------------------------------------
Sessions Dump
--------------------------------------
UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0
RemoteAddress: 192.168.2.38
Session Data
pagename|s:8:"timeline";token|s:32:"db2856be405f5840448006b992b02ba9";token_timeout|i:1414512103;message|s:0:"";userid|s:1:"1";username|s:10:"xibo_admin";usertype|s:1:"1";layout|a:6:{s:13:"filter_layout";s:0:"";s:13:"filter_userid";i:0;s:14:"filter_retired";i:0;s:20:"filterLayoutStatusId";s:1:"1";s:11:"filter_tags";s:0:"";s:12:"LayoutFilter";i:0;}gridToken|s:32:"32e0d7f5c91f5c88c89e83b7570f13b4";gridToken_timeout|i:1414512101;log|a:7:{s:6:"Filter";i:0;s:11:"filter_type";i:0;s:15:"filter_function";s:0:"";s:11:"filter_page";s:0:"";s:13:"filter_fromdt";s:0:"";s:14:"filter_display";i:0;s:14:"filter_seconds";s:3:"120";}
----

UserAgent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
RemoteAddress: ::1
Session Data
pagename|s:8:"timeline";token|s:32:"63935859730a0bdcc6160d1ef8255695";token_timeout|i:1414511879;message|s:0:"";userid|s:1:"1";username|s:10:"xibo_admin";usertype|s:1:"1";layout|a:6:{s:13:"filter_layout";s:0:"";s:13:"filter_userid";i:0;s:14:"filter_retired";i:0;s:20:"filterLayoutStatusId";s:1:"1";s:11:"filter_tags";s:0:"";s:12:"LayoutFilter";i:0;}gridToken|s:32:"2558d695131b0ea1dc787843e3a10914";gridToken_timeout|i:1414511875;
----

Revision history for this message
Dan Garner (dangarner) said :
#2

Which version are you using please?

Revision history for this message
Martyn Breckenridge (w-m-f) said :
#3

Hi, sorry it's the latest 1.7

Revision history for this message
Best Dan Garner (dangarner) said :
#4

Ah... I think I know then.

Can you have a look in lib/data/region.data.class.php and go to line 95?

Replace it with this:

$regionid = Kit::uniqueId();

It should look similar to that already, just not quite right.

Revision history for this message
Martyn Breckenridge (w-m-f) said :
#5

Hey,

opened region.data.class.php, had the following on line 95:

        $xml = new DOMDocument("1.0");

On lines 99 and 100 I had this though:

        if ($regionid == '')
        $regionid = uniqid();

I changed the second line to what you suggested ($regionid = Kit::uniqueId();) but no luck. Add Region still does not add region.

Revision history for this message
Dan Garner (dangarner) said :
#6

Is this an upgraded 1.6 install or a fresh install?

If upgraded did you extract the zip over the top of the existing one? If so you will need to replace your files with a fresh extract.

Revision history for this message
Arne (a-otten) said :
#7

I encountered the same problem. I replaced line 95 as Dan instructed and it worked.

I am currentl y using 1.7.0 alpha 2 and it is a fresh installation.

Revision history for this message
Dan Garner (dangarner) said :
#8

Thanks Arne...

Martyn, it sounds like you don't have the latest 1.7.0-alpha2 release. Line 95 had the DOMDocument statement on it in alpha. Can you upgrade to alpha2 and then make the same tweak?

Cheers,
Dan

Revision history for this message
Martyn Breckenridge (w-m-f) said :
#9

Will do, possibly I downloaded the wrong version as I was doing so many other things at the same time.

I wont be able to do that until next Wednesday, but I'll update yous then.

Revision history for this message
Martyn Breckenridge (w-m-f) said :
#10

Confirmed that I had downloaded an older version of 1.7. All fixed now once line 95 was edited.

Thanks :)

Revision history for this message
Martyn Breckenridge (w-m-f) said :
#11

Thanks Dan Garner, that solved my question.