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?
Posts: 32509
meaning what?
see the comment from config.php
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.
Posts: 210
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.
Posts: 32509
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.
Posts: 210
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.
Posts: 16504
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
Posts: 210
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.
Posts: 16504
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
Posts: 32509
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.
Posts: 210
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
Posts: 210
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.
Posts: 32509
penguin, thanks.
could you open a bug on http://sf.net/projects/gallery/ ? just copy your post to a new bug.
thanks again!
Posts: 210
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.
Posts: 32509
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.
Posts: 210
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.
Posts: 210
Do I have to register with http://sourceforge.net/ to post the bug?
Posts: 32509
well, if you wanna be notified when the bug is fixed, yes. but you can also post bugs as "nobody" = anonymous.
Posts: 210
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?
Posts: 32509
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
Posts: 210
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.
Posts: 210
Bug reported:
[ 1326262 ] Hybrid-Theme: Not Valid XHTML 1.0 Strict!
Posts: 8601
and fixed.