Elegance Theme Issue

Elegance Theme Issue

by Yeisson Darío Mena Triana -
Number of replies: 9

Good day,

I have installed Moodle 2.6.2 and also i have installed this beautiful theme Elegance. However, when I disable the themedesign mode it looks like this.

 

When I turn the designer mode on, the theme looks great:

Somebody can help me? I have read the other posts and I can't find out the problem. 

Thanks.

Average of ratings: -
In reply to Yeisson Darío Mena Triana

Re: Elegance Theme Issue

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Yeisson,

This has been reported a few times but is really odd.  Could you provide more information about your set up please?  Such as web browser used and version.  Does the issue happen in other browsers besides the one you are using?  Are there any errors reported on the 'Console' of developer tools when you (press F12).  Are there any errors if you turn on developer level debugging?

Gareth

In reply to Gareth J Barnard

Re: Elegance Theme Issue

by Yeisson Darío Mena Triana -

Hi Gareth

I can tell you this:

  1. This problem occurs in all web explorer (Opera, Explorer, Chrome, Firefox)
  2. This information appears on designermode:on
    moodle-core-actionmenu: Initialising the action menu manager
    warn: The moodle-core-notification parent module has been deprecated. Please use one of its subclasses instead.
    moodle-block_navigation: Initialising navigation block tree
    moodle-block_navigation: Initialising navigation block tree
    event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
    Initialising drag and drop for blocks.
    Block region `side-post` initialising
    Block region `side-middle` initialising
    Block region `hidden-dock` initialising
    Initialisation of drag and drop for blocks complete.
    This information appears on designermode:off
    Failed to load resource: net::ERR_CONNECTION_RESET http://e152801112:8080/moodle/theme/styles.php/elegance/1395328778/all
    event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
    moodle-core-actionmenu: Initialising the action menu manager
    warn: The moodle-core-notification parent module has been deprecated. Please use one of its subclasses instead.
    moodle-block_navigation: Initialising navigation block tree
    moodle-block_navigation: Initialising navigation block tree
    Initialising drag and drop for blocks.
    Block region `side-post` initialising
    Block region `side-middle` initialising
    Block region `hidden-dock` initialising
    Initialisation of drag and drop for blocks complete.
  3. There aren't any errors on the debuggin mode on Developer. 
  4. Apache/2.4.2 (Win64) PHP/5.4.3

I hope this will be useful...

Yeisson

In reply to Yeisson Darío Mena Triana

Re: Elegance Theme Issue

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Yeisson,

This:

Failed to load resource: net::ERR_CONNECTION_RESET http://e152801112:8080/moodle/theme/styles.php/elegance/1395328778/all

Is the issue, thus being a server configuration issue.  I cannot tell from the other screen shot with theme designer mode on that the rest of the site is running on the alternative HTTP port 8080.  If not, then I would guess that a server configuration is wrong or a firewall is blocking that port.

G

In reply to Gareth J Barnard

Re: Elegance Theme Issue

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, this has to be with your server / client network setup, as here it is running locally on Windows in IE11 on port 8080 with theme designer mode off:

 

Attachment 2014-03-20 16_07_26-Greenshot.png
In reply to Gareth J Barnard

Re: Elegance Theme Issue

by Yeisson Darío Mena Triana -

But it doesn't have to be about the network, because this moodle is on my local server... 

So... ¿what do I do?

In reply to Yeisson Darío Mena Triana

Re: Elegance Theme Issue

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Yes because the application is still using networking in the OS.  Ok, disconnect from the internet and turn all your firewalls off and see if that solves the problem.  If so then you'll know that its them.

Also where have you defined 'e152801112' to point to 127.0.0.1?  Is it in your hosts file as it's not an IP address.  If not that mechanism then you would have had to be running a DNS server and have your connected router forward ARP packets for resolution to the DNS server which would have an entry for 'e152801112' referring to the static IP that you had set up for your machine.

In reply to Gareth J Barnard

Re: Elegance Theme Issue

by Yeisson Darío Mena Triana -

Hi,

The "e152801112" name es my desktop name, I just configured so I didn't use a static IP, because I wanted to put online this site even for wireless conection at this Universuty, which it worked. Also I want to say that this theme started to run badly even with a fresh moodle... I only installed a new moodle 2.6 and right away installed the theme. Then I configured the ports and the configh.php and even the listen in the apache server... but nothing happened.

So I'm just lost in what am I going to do... I'm just lost...

Any idea...

Thanks

Y

 

In reply to Yeisson Darío Mena Triana

Re: Elegance Theme Issue

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Google a solution: https://support.google.com/chrome/answer/117805?hl=en.

The fault is not with the theme but with the network configuration.

Ok, I'm guessing that it works when you are online at University and does not when you are not?  The thing is for that to work the name must be resolved to an IP address somehow.  This is achieved either through DNS or by static IP allocation in the hosts file (which if not the loopback address of 127.0.0.1) needs to be configured on the NIC (Network Interface Card).  If you are connecting to a router and using DHCP then you will be allocated a dynamic IP address, but that does not solve the name to IP issue (which is why we have DNS).

So as a hunch I'm guessing that the University not only allocates an IP to your machine over the wireless NIC but also automatically associates the computer name with it.  Therefore when you are not connected to the network then this does not happen.

Therefore you have some choices:

  1. Run as localhost on 127.0.0.1.  But have no remote access online.
  2. Use a static IP which is unique when connecting on the Universities network (talk to your IT people) and get them to make a DNS entry.
  3. Find a hosting provider to host Moodle on their internet connected server.
  4. Setup and use your own wireless router with its own wireless network, which also allocates a static IP to your machine based on it's MAC address (the DCHP server can often be configured to reserve IP addresses to MAC addressed), run your own DNS software server on your machine (http://posadis.sourceforge.net/sans) and configure the router to use that as a DNS server, setup the DNS server with an A type record to point to the static IP of your machine with the chosen name.  Then you will be able to run at home and university with others connecting to your Moodle as long as they are in range of the wireless router.
  5. Scrub running on your own machine and ask the University for some internet enabled server space upon which to experiment with Moodle.  Perhaps on a virtual server.

G