change of config.php: allowSessionAccess false->true

Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Thu, 2005-10-06 17:31

A Mac user told me, that he has a lot of problems with G2 and reported, that icab produces a lot of "illegal lines".

Now I would like to validate with the included button in G2. Therefore I have to change "allowSessionAccess" in config.php from false to true.

This files belongs to "nobody" and since I don't have root-permissions I cannot change it.

How can I edit this file and is this a security problem?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-06 17:46
Quote:
A Mac user told me, that he has a lot of problems with G2 and reported, that icab produces a lot of "illegal lines".

meaning what?

Quote:
Now I would like to validate with the included button in G2. Therefore I have to change "allowSessionAccess" in config.php from false to true.

see the comment from config.php

Quote:
/*
* Allow a particular IP address to access the session (it still must know the
* session id) even though it doesn't match the address/user agent that created
* the session. Put the address of validator.w3.org ('128.30.52.13') here to allow
* validation of non-public Gallery pages from the links at the bottom of the page.
*/

so "true" is definitely not a correct value and whatever you want to achieve there, it's 99,999% not the way to go.

@editing config.php:
so it must be a multisite, else i cannot imagine that g2 created config.php.
you could create foo.php
<?php system('chmod 777 config.php'); ?>
put it into your multisite directory, browse to it. then config.php should be editable.
but again, what you wanna do there is weird.

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Thu, 2005-10-06 20:00

I will give you more Mac-info, after I received a Mail.

I've been at http://validator.w3.org/ and checked the gallery, I got errors with an unmodified Matrix-theme:

Error Line 259 column 3: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.

Line 259 column 4: end tag for "br" omitted, but OMITTAG NO was specified.

Thanks for your warning and since I can check the site with the url above, there is no need again to modify config.php.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-06 20:33

ah, it's actually for validating. so allowSessionAccess is fine :) but "true" should be replaced with the actual ip of validator.w3.org.

@html errors:
1. make sure you're using the latest version of g2 (g 2.0 from mid september is fine right now)
2. make sure you don't have any local/ / customized templates / themes
3. then validate the html
4. if you got errors, let us know which g2 URL (what g2 view) and what g2 blocks are on the page.

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Sun, 2005-10-09 20:15

I am sorry, my G2 is under heavy construction and uses modified themes only, so it doesn't make sense to discuss these errors. At the other hand, I don't have enough space to create a test-gallery.

My question to these people, who use official unmodified versions, is: Do you get errors, when you check your G2 with http://validator.w3.org/ and use the matrix or hybrid-theme?

Also I would like to mention, that I have been told that Firefox produces Javascript-errors with G2, which I _cannot_ confirm.

If you check G2 with a textbrowser (lynx, w3m, links) you get errors with the album-tree, which is placed at the bottom of all pictures. I have no idea why, maybe javascript is not supported with these textbrowsers.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-10-09 20:45

With Matrix, no errors, it validates "This Page Is Valid XHTML 1.0 Strict!"

With Matrix with album select (DHTML Tree) on sidebar, also no errors "This Page Is Valid XHTML 1.0 Strict!"

With Matrix and album select (DHTML Tree) below image or albums, also no errors. "This Page Is Valid XHTML 1.0 Strict!"

With Hybrid, yes, I get 2 errors, but it also doesn't claim to be "Strict XHTML"
Error Line 31, column 69: there is no attribute "frameborder" .
Error Line 31, column 72: element "iframe" undefined .

I did not load up the album select block in the Hybrid theme.

Why don't you have space to keep just the standard Matrix and/or Hybrid themes lying around for testing?

I didn't get any errors browsing my site using lynx.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Sun, 2005-10-09 21:07

Thanks nivekiam for your test and since you cannot conform my errors I will setup a gallery with my multisite installation, which will be deleted after 24 hours, since it reduces my mailspace. I keep you informed when the gallery is setup.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-10-09 21:11

All you need to do to test out the standard themes is add them to your current /themes directory. Then install it through Site Admin > Themes. No need for an additional install or to configure a multisite install or anything like that.

When you don't want it anymore just uninstall it from Site Admin > Themes then delete that theme's directory.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-10-09 21:15

multisite will use the same files as your normal installation. if you changed the template files / the themes in your installation, the multisite will also not validate for the same themes.

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Sun, 2005-10-09 22:18

I changed some things outside of "local" too. In the meantime I have installed a new gallery, but didn't configure it and filled it with pictures. You get a message here with errors, if I get some :-)

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Wed, 2005-10-12 21:59

Here it is, a simple G2, with 1 picture:
http://g2test.tuxfan.uni.cc/main.php

We can do tests whatever you want.

http://validator.w3.org/check?uri=http%3A%2F%2Fg2test.tuxfan.uni.cc%2Fmain.php

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 29 column 69: there is no attribute "frameborder".

..._details" class="gcBorder2"><iframe frameborder="0"></iframe></div>

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


2. Error Line 29 column 72: element "iframe" undefined.

...ls" class="gcBorder2"><iframe frameborder="0"></iframe></div>

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-10-12 22:13

penguin, thanks.
could you open a bug on http://sf.net/projects/gallery/ ? just copy your post to a new bug.
thanks again!

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Wed, 2005-10-12 22:37

Okay I will do this, but before, please tell me, if it does make sense to post other errors too. I have to do tests, but I think I could find others too, since I cannot imagine what I did with my "construction gallery" wrong re w3c. I think there are compatibility-errors with the matrix and the hybrid-theme.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-10-12 22:41

if you post validation errors, then only for non-customized themes / templates. we've already too few time to do all the things that need to be done for g2. so we need the bug reports to be exact and if you submit a bug report that is possibly invalid due to your own changes, we lose even more resources.

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Thu, 2005-10-13 10:36

There is a misunderstood. Of course I will do error-reports for published themes only (and not my crap :-) ) and especially for the matrix and the hybrid theme, but at the moment I can't get an error with the matrix-theme but am I working on it. Give me some time to find out, what I did to get a non-compliant-matrix-site.

I redesigned http://g2test.tuxfan.uni.cc/ to make it easier to find out, which theme is used. You get the error now with http://validator.w3.org/check?uri=http%3A%2F%2Fg2test.tuxfan.uni.cc%2Fv%2Fhybrid%2F which is http://g2test.tuxfan.uni.cc/v/hybrid/

This page is not Valid XHTML 1.0 Strict!

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 29 column 69: there is no attribute "frameborder".

..._details" class="gcBorder2"><iframe frameborder="0"></iframe></div>

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


2. Error Line 29 column 72: element "iframe" undefined.

...ls" class="gcBorder2"><iframe frameborder="0"></iframe></div>

You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Thu, 2005-10-13 10:39
valiant wrote:
penguin, thanks.
could you open a bug on http://sf.net/projects/gallery/ ? just copy your post to a new bug.
thanks again!

Do I have to register with http://sourceforge.net/ to post the bug?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-13 10:59

well, if you wanna be notified when the bug is fixed, yes. but you can also post bugs as "nobody" = anonymous.

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Thu, 2005-10-13 21:10

Which username and password do I have to use not to register? I couldn't login anonymous. Sorry, I am tired of registring every 5 minutes. Why isn't it possible to submit a bug-report with the username of the forum?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-13 21:52

because sourceforge.net is not the same as gallery. we're just using their services.

ah, i see. we don't allow anonymous bug reports. probably because we need often more information after an initial report to finally fix it.

it'd still be great if you would file a bug report :)

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Thu, 2005-10-13 22:39

Of course I will do, I have signed up now and I am waiting for the confirmation mail. It are the spammers, which make things complicated. Since I have setup a subdomain for testing, I created a postmaster and signup-address now too and things can go an. I hope this mail-address is only visible for developers.

 
Pinguin

Joined: 2005-09-27
Posts: 210
Posted: Thu, 2005-10-13 23:00

Bug reported:
[ 1326262 ] Hybrid-Theme: Not Valid XHTML 1.0 Strict!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-10-19 18:33

and fixed.