[WINDOWS] System info breaks admin dashboard on Windows

joosep-georg

Joined: 2011-06-20
Posts: 10
Posted: Mon, 2011-06-20 11:02

Regardless of setting it to middle or to sidebar, only the system information appears, last line being about MySQL version.

Windows: Windows NT 6.1
Apache: Apache/2.2.19
PHP: 5.2.17
MySQL: 5.1.57-community

Where to look for more information about the problem?

Edit: Gallery 3.0.2

 
jtenkate

Joined: 2010-12-06
Posts: 45
Posted: Mon, 2011-06-20 14:05

On Windows, the Server Load isn't available in the platform info.
Remove the following lines in file \modules\gallery\views\admin_block_platform.html.php:

  <li>
    <?= t("Server load: %load_average", array("load_average" => join(" ", sys_getloadavg()))) ?>
  </li>

Jeroen
www.kidsfotos.nl

 
joosep-georg

Joined: 2011-06-20
Posts: 10
Posted: Mon, 2011-06-20 14:16

Well, maybe better to add these lines to the code?

#18 + <?php if (function_exists("sys_getloadavg")): ?>
#21 + <?php endif; ?>

 
joosep-georg

Joined: 2011-06-20
Posts: 10
Posted: Wed, 2011-06-29 10:47

Appears that Gallery's attitude towards poor Windows users is rather hostile and instead of utilising that harmless but useful improvement they'd better ignore the help they're provided – https://sourceforge.net/apps/trac/gallery/ticket/1756

Quote:
by tnalmdal

status changed from new to closed
resolution set to wontfix

Thanks for the patch, but Gallery3, doesn't support running in a Windows environment.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-30 01:16

How is "Thanks for the patch, but Gallery3, doesn't support running in a Windows environment." hostile? To me it was polite and to the point.
Not to fan flames; but where do we stop adding code specific to windows? Sure it is only a one line change (for this) but if the future there might be another and another then another. We went that route in G2 and look how blotted the core is.
If your willing to contribute to testing and maintaining a windows fork your are welcome to do so. Just create a fork on the git hub and keep it up to date with the other issues that you find and contribute back to the community.

We have asked and asked for windows experts to come forward and only one has so far helping out by creating a windows codex page:
http://codex.gallery2.org/Gallery3:Installation_on_Windows_Server_2008_and_IIS7
The community gets back what they contribute.

Similar discussion:
http://gallery.menalto.com/node/102704#comment-377010

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
joosep-georg

Joined: 2011-06-20
Posts: 10
Posted: Thu, 2011-06-30 08:51

For some reason I got Gallery 3 working on Windows without any major problems, I was not even aware of that "Installation_on_Windows_Server_2008_and_IIS7" page, maybe because I am running it on Apache.

Now, there are some minor glitches which are easy to fix. I have already suggested two simple patches but there's suddenly a wall I'm running against – I'd like to contribute but I can't...

And why fork? I've been going through the Gallery 3 code for about 20 hours now (I tend to keep track of my time spent as I bill my customer based on it) and I don't see it heavily depending on non-Windows environment.

(Should we open a discussion under a new topic for this?)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-30 13:48
Quote:
I'd like to contribute but I can't...

Why? This is open source anybody can contribute.

Quote:
And why fork?

That is the best way and how the project works. We can list many reasons.

Quote:
(Should we open a discussion under a new topic for this?)

Sure but you are not going to convince me or any other team member. It might generate interest for others to step up and contribute, but like we have seen before they come and fade into the background quickly.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
joosep-georg

Joined: 2011-06-20
Posts: 10
Posted: Thu, 2011-06-30 14:20
floridave wrote:
Quote:
I'd like to contribute but I can't...

Why? This is open source anybody can contribute.

Provided patch, rejected: https://sourceforge.net/apps/trac/gallery/ticket/1756
Provided patch, rejected: https://sourceforge.net/apps/trac/gallery/ticket/308

If you like, I could keep on patching but what's the point if everything ends in 'wonfix', because Windows-support appears not to be allowed by the Gallery Team...

 
joosep-georg

Joined: 2011-06-20
Posts: 10
Posted: Thu, 2011-06-30 14:29
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-07-01 16:55

Thank for your contribution on the codex page.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Mon, 2011-07-04 17:37

You may find this module to be of interest:
http://gallery.menalto.com/node/102809