google-code-export / kv-webme

Automatically exported from code.google.com/p/kv-webme
1 stars 0 forks source link

some problems with menu #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install kv-webme-20120403.tar.bz2 and configure it
2. add few pages, subpages
3. work only pages which are on the top of hierarchy, subpages and so on are 
not accessible using menu.

On what operating system are you running the system?
some linux, not know exactly, I use a host company. 

Please provide any additional information below.
mysql> SELECT id,name,parent FROM pages\g
+----+----------+--------+
| id | name     | parent |
+----+----------+--------+
|  1 | Home     |      0 |
|  2 | about    |      0 |
|  3 | gal      |      0 |
|  4 | abcde    |      3 |
|  5 | subpage  |      4 |
+----+----------+--------+
5 rows in set (0.39 sec)

As you may see here it is done that subpage has the parent which is abcde and 
this one has the parent gal.
When I point mouse over "gal" button I expect to see the menu with subpages. It 
does not happen. Sorry if default is something different. I just think it 
should be this way...
Another problem is that I do not know on what page I actually am. I mean the 
menu should be highlighted (showing current page) but it does not happen and 
worst, sometimes it shows different site....hard to explain, better is to show 
a picture. 

And last:
when I go to non existing page I should be redirected to 404 page, but I've 
observed 2 behaviors
a) if in the address is dot, it works as expected but
b) when, let's say, I have page named Home and I want to go to homer, I am 
redirected to Home. It happens with all names I tried, not necessarily 
containing home in the name.  

Original issue reported on code.google.com by adam.pau...@gmail.com on 10 May 2012 at 3:53

GoogleCodeExporter commented 9 years ago
thanks Adam. you've mentioned a few things there. Let's tackle the main one - 
the broken menu.

do you get any javascript errors?

what browser are you using?

any errors logged in the web server's logs?

what version PHP is it?

Original comment by kae.verens@gmail.com on 10 May 2012 at 4:20

GoogleCodeExporter commented 9 years ago
hey, sorry for delay but time management is not my strong point.
My chrome crashed and I left it as it was, but I recall I suspected REQUIREJS 
about that errors...but I did not prove it ;) I think it is NOT present but 
needed by Your CMS...am I correct?
I got few JS errors in Web-tools (devel): in FF it was something with missing 
'<', in Chrome something with 'u' <- but I did not know what it was about. 
Second line in menu.js.
As I mentioned it was FF and Chrome. I do not use windows but I did check it on 
MSWin and the problem was the same...
errors in logs? I didn't see anything special -- something about timezone BUT I 
am not sure if it had something with webME. It was (as I think of it) not 
present date.timezone= and it was that.
maybe my error level is set too low ;)

PHP 5.3.13 with Suhosin-Patch (cli) (built: May  9 2012 13:02:39) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

and server with linux PHP Version 5.2.17

Original comment by adam.pau...@gmail.com on 20 May 2012 at 7:43

GoogleCodeExporter commented 9 years ago
require.js is not used in the CMS. I did consider using it, but haven't gotten 
around to doing so.

I wonder if maybe it's a problem with the compressed versions of the scripts? 
When you request a .js file from the CMS, it first checks to see if there is a 
.js.m version of that file (the .js file compressed using a compressor I wrote 
a while back)

try disabling the .js.m bit. To do so, edit j/js.php and change "if 
(file_exists($f.'.m')) {" to "if (0 && file_exists($f.'.m')) {".

Original comment by kae.verens@gmail.com on 20 May 2012 at 3:52

GoogleCodeExporter commented 9 years ago
Sorry to say that but I do not see any difference.
It is still broken in my case. 
<script src="/js/1333488718|/j/menu.js"> Is it correct to see a "|" in path? 
When I click on it, I get: 

<br />
Warning:  filemtime() [<a href='function.filemtime'>function.filemtime</a>]: 
stat failed for requirejs-1.0.7 in /users/pawe122/www/a.p-koncept.pl/j/js.php 
on line 48<br />
;(function($){$.toJSON=function(o)
{if(typeof(JSON)=='object'&&JSON.stringify)
return JSON.stringify(o);var type=typeof(o);if(o===null)
[only 5 first lines]
and when I click on any page in the menu it's still shows that current page is 
home (when it is not).

You can check it by going to a.p-koncept.pl

Original comment by adam.pau...@gmail.com on 25 May 2012 at 4:45

GoogleCodeExporter commented 9 years ago
I see the problem on your site.

Can you try with the latest SVN version? It has a number of fixes applied since 
April, and may already have solved this problem. I checked my copy of the 
source, and there is no reference to requirejs anywhere at all in it.

Original comment by kae.verens@gmail.com on 25 May 2012 at 5:56

GoogleCodeExporter commented 9 years ago
thank you, a version from svn works as expected, at least problem with menu 
disappeared. 
so solved.
I'll be in sync with other issues ;)

Original comment by adam.pau...@gmail.com on 26 May 2012 at 10:21

GoogleCodeExporter commented 9 years ago
marking as Done.

thanks

Original comment by kae.verens@gmail.com on 30 May 2012 at 7:44