Web page issues

Forum for questions and support relating to the 1.24.x releases only.
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Web page issues

Post by curtishall »

On a clean install of 1.24 the pages are not being displayed correctly and some of the buttons do not work (Add new monitor). Running firebug shows this error:

createPopup is not defined
onclick(click clientX=209, clientY=293)3XcTBGqt...QLw%3D%3D (line 2)
[Break on this error] createPopup("?view=monitor", "zmMonitor0", "monitor");

I've reinstalled and reinstalled and verified permissions. I thought it was a mootools issue but according to firebug it's not.

So...I'm really clueless here. I've jacked debugging up to 9 and no errors show up. Nothing in error.log for apache either.
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

I haven't noticed that. Could you please go to this live link and let me know if it still does it for you.
Last edited by newvisionantenna on Mon Feb 02, 2009 10:02 pm, edited 1 time in total.
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post by curtishall »

newvisionantenna wrote:I haven't noticed that. Could you please go to this live link and let me know if it still does it for you.

http://66.220.104.94/zm/
That page is formatted correctly. It's something on the server end but I have no idea what.
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you check your apache error_log in case it is unable to access any of the files?

The createPopup function should be defined in skins/classic/js/skin.js
Phil
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post by curtishall »

zoneminder wrote:Have you check your apache error_log in case it is unable to access any of the files?

The createPopup function should be defined in skins/classic/js/skin.js

Yup...there isn't anything useful in error.log. It almost seems that the javascript stuff isn't being loaded correct (based on the wierd formatting). But that doesn't make any sense....

I'll get a demo online here in a little bit (the virtual machine is currently on my laptop)
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

While we are talking about web page issues, I now notice something with the latest build. At first I stuck with one prior release to the final one that says the control option is fixed and I would just copy the new file over the old build. Now that I had time to roll up the newest release from step one, I think there is a bug with the option to make a video out of an event. In IE7 I can click the button that says video and the box comes up asking what type of video I want to make. When I click generate it does nothing.

Now if I take that same link in the IE7 browser window and copy if over in Google Chrome the same window pops up and I can generate a video no problem. If I go to Google Chrome first and select the button that says video I get this and a box instead of the video making options,

An error has occurred and this operation cannot continue.
For full details check your web logs for the code 'F88AB7'

In Firefox there is no issue's at all. Just thought this was strange.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you grep for F88AB7 in your web error log it will tell you more about the problem. It will be an SQL error of some sort.
Phil
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post by curtishall »

curtishall wrote:
zoneminder wrote:Have you check your apache error_log in case it is unable to access any of the files?

The createPopup function should be defined in skins/classic/js/skin.js

Yup...there isn't anything useful in error.log. It almost seems that the javascript stuff isn't being loaded correct (based on the wierd formatting). But that doesn't make any sense....

I'll get a demo online here in a little bit (the virtual machine is currently on my laptop)
Here is the ZM session:

http://office.bluecherry.net:83
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I keep trying it but keep getting Failed to connect. Is the port open?
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Post by nuck »

Must have it back offline. I hit the page earlier today but it was pretty much non-functional from my end.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Alright Curtis, the usual round of questions :lol:
Versions:
Apache:
PHP:

Hopefully one of us can get to it before it goes down again. :x
If it's still a VM, maybe you could PM us with ssh details. :wink:
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post by curtishall »

cordel wrote:Alright Curtis, the usual round of questions :lol:
Versions:
Apache:
PHP:

Hopefully one of us can get to it before it goes down again. :x
If it's still a VM, maybe you could PM us with ssh details. :wink:
The VM is on my laptop...I'll get it back up when I get into the office this morning. For some reason my workstations crashes every time I load the VM. I've tried with Virtualbox, Parallels and VMWare...which could be the issue...perhaps my fix for mksquashfs freezing (--no-sparse) did something weird and that is my problems.

I'm starting the process over again from the beginning...I'll let you know when I get the VM back up.

As for versions:

xUbuntu 8.04.1 (upgraded)
Apache: Apache/2.2.8
PHP: 5.2.4-2ubuntu5.4
Mysql: 5.0.51a-3ubuntu5.4
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post by curtishall »

Okay it's up...and should be up all day. I borrowed someone elses workstation since mine apparently hates virtual machines.
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
nuck
Posts: 148
Joined: Tue Nov 11, 2008 1:43 am
Location: Canada

Post by nuck »

I just had a look at your system. I'm not sure exactly what I'm looking at but it certainly doesn't look like the ZM php frontend I know. What I am seeing looks as though the tables aren't being created and possibly even the stylesheets aren't being used.

I can switch to the options menu which also looks as though it's being rendered as html, I changed the bandwitdh which opened a new page (again, looks like html) rather than creating the normal pop-up window, and neither the add monitor or filters buttons work.

Is there any indication of in what's going on in your apache logs? You should see an entry for my visit at 23:00 EST or thereabouts. Does the console display properly on localhost in a x session? Is PHP set up properly with apache? How about AJAX ?

If it helps, here is the source for the console header that my browser is receiving -

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>ZM - Console</title>
  <link rel="icon" type="image/ico" href="graphics/favicon.ico"/>
  <link rel="shortcut icon" href="graphics/favicon.ico"/>
  <link rel="stylesheet" href="css/reset.css" type="text/css"/>
  <link rel="stylesheet" href="skins/classic/css/skin.css" type="text/css" media="screen"/>
  <link rel="stylesheet" href="skins/classic/views/css/console.css" type="text/css" media="screen"/>
  <script type="text/javascript" src="tools/mootools/mootools.js"></script>
  <script type="text/javascript" src="js/mootools.ext.js"></script>
  <script type="text/javascript">
  var AJAX_TIMEOUT = 5000;

  var currentView = 'console';
  var thisUrl = "http://office.bluecherry.net:83/index.php";
  var skinPath = "skins/classic";

  var canEditSystem = true;
  var canViewSystem = true;

  var refreshParent = false;

  var focusWindow = false;
  </script>
  <script type="text/javascript">
var consoleRefreshTimeout = 300000;

var showVersionPopup = false;
var showDonatePopup = false;
  </script>
  <script type="text/javascript" src="skins/classic/js/skin.js"></script>
  <script type="text/javascript" src="skins/classic/views/js/console.js"></script>
</head>
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I have seen that before a long long time ago.
If I remember it had something to do with me missing something up when creating a virtual host in Apache and not everything points back to the same place.
You are certainly missing your style sheets.
Locked