Issue using 8.5XT

Hi all

I have a running installation of V8.4 and I wanted to check out 8.5XT because of the timezone fixes etc.

I have a windows machine runing WAMP so I'm using an Apache Webserver and MySQL DB instead of my other sites IIS/MySQL configuration.

However I made a parallel install of it with a copy of the DB. When opening it up it shows me the following message:

 Notice: Undefined variable: session in C:\wamp\www\emoncms-Extended\Modules\dashboard\dashboard_menu.php on line 7
Call Stack
# Time Memory Function Location
1 0.0000 276560 {main}( ) ..\index.php:0
2 0.5161 667136 load_menu( ) ..\index.php:149
3 0.5161 679784 require( 'C:\wamp\www\emoncms-Extended\Modules\dashboard\dashboard_menu.php' ) ..\core.php:145 

What could be the issue for this? I also checked in the Admin section if it has something to update and it did a small change but still the message appears and now Dashboard selection.

Any ideas?

Also I use nodes for my installations. How can I bring back the nodes into V8.5XT? I downloaded the nodes module and installed it in the modules directory. It shows me the Nodes link in the top row but when clicking on it, there are no nodes and there should be plenty of them.

Also any ideas for this issue?

Regards

Andreas

chaveiro's picture

Re: Issue using 8.5XT

firefox7518's picture

Re: Issue using 8.5XT

Hi chaveiro

I made the changes as you did in the file and now receive the following message:

( ! ) Parse error: syntax error, unexpected ')' in C:\wamp\www\emoncms-Extended\Modules\dashboard\dashboard_menu.php on line 7
Call Stack
# Time Memory Function Location
1 0.0000 274568 {main}( ) ..\index.php:0
2 0.5041 774520 load_menu( ) ..\index.php:149

 

When I delete one of the ' it shows me this message:

( ! ) Parse error: syntax error, unexpected 'profile' (T_STRING) in C:\wamp\www\emoncms-Extended\Modules\dashboard\dashboard_menu.php on line 8
Call Stack
# Time Memory Function Location
1 0.0000 274568 {main}( ) ..\index.php:0
2 0.4520 774488 load_menu( ) ..\index.php:149

 

sub3marathonman's picture

Re: Issue using 8.5XT

Wow, that is the exact problem I've been having!  As a newbie, I'm not sure about posting the screenshot, but I have the most basic setup possible.  I followed the instructions for the localhosting with Windows.

I can also document that the errors I get are different depending on if I'm using Version 8.5.0 or 8.5.1 XT.  It doesn't seem to keep either version from working, so I went with 8.5.0 for now as I'm trying to just learn to use the emoncms.

For the 8.5.0, the error is shown when using the basic graph with the eye:

"(!) Notice: Undefined offset: 2 in "C:\wamp\www\emoncms\Modules\vis\vis_controller.php on line 74

Call Stack

1     0.0007     275368     {main}()             ...\index.php:0

2     0.0092     646808     controller()          ...\index.php:109

3     0.0100     689232     vis_controller()    ...\core.php:66

 

For the 8.5.1 XT, the errors (2 instead of just one, but actually the same error listed twice) are immediate:

(!) Notice: Undefined offset: 2 in "C:\wamp\www\emoncms\Modules\dashboard\dashboard_menu.php on line 7

Call Stack

1     0.0011     272232     {main}()               ...\index.php:0

2     0.3392     770592     load_menu()          ...\index.php:149

3     0.3431     783000     require('C:\wamp\www\emoncms\Modules\dashboard\dashboard_menu.php')

                                                                    ...\core.php 145

 

Bill Thomson's picture

Re: Issue using 8.5XT

When I delete one of the ' it shows me this message:

Firefox,

If you deleted the ' character, that's what's causing the syntax error you're getting

Your error message Parse error: syntax error, unexpected ')' is saying that it's getting an unexpected ) i.e. close parenthesis on line 7.

 

Bill Thomson's picture

Re: Issue using 8.5XT

Chaveiro,

When I view your patched line of code in a text editor, (Notepad++) and check it for matching parentheses, it shows no matches for the last two parentheses on the line.

$sess = (isset($session['write']) && $session['write']) ? 'write':
(isset($session['read']) && $session['read']) ? 'read':''));

All the other parentheses match up OK. IOW, there are 4 open parens, and six close parens.

Regards,

Bill

firefox7518's picture

Re: Issue using 8.5XT

Hi Bill

Thanks, I misswrote that in my last comment. When I deleted the two parens I still get an error message.

 I then tried it this way (sorry no programmer):

$sess = (isset($session['write']) && $session['write']) ? 'write':(isset($session['read']) && $session['read']) ? 'read':'';

 

This way I get no error message but still no dashboard menu.

chaveiro's picture

Re: Issue using 8.5XT

Update to latest from github.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.