Topic Closed
mabu
458 Posts
8.1K Downloads
5 Themes
9 Plugins

I get the error (gpdebug is off)

Notice (8) Undefined index: label
    in: /mnt/web020/a1/95/51478895/htdocs/Lehre2017/data/_addoncode/tbuvdiq/nextprevious.php
    on line: 31
    Request: /TM_-_elucidation
    Method: GET

Show Backtrace

array( [0] => array( [function] => (string)np_addlinks [args] => (string)array(1) ) [1] => array( [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/include/tool/Output.php [line] => (integer)676 [function] => (string)call_user_func_array [args] => (string)array(2) ) [2] => array( [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/include/tool/Output.php [line] => (integer)628 [function] => (string)ExecMethod [class] => (string)gp\tool\Output [type] => (string):: [args] => (string)array(3) ) [3] => array( [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/include/tool/Output.php [line] => (integer)575 [function] => (string)_ExecInfo [class] => (string)gp\tool\Output [type] => (string):: [args] => (string)array(2) ) [4] => array( [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/include/tool/Plugins.php [line] => (integer)237 [function] => (string)ExecInfo [class] => (string)gp\tool\Output [type] => (string):: [args] => (string)array(2) ) )

in line 31 stands  if (($nextLevel !== null) && ($gp_menu[$nextLevel]['level'] > 0)) {
    echo common::Link($gp_titles[$nextLevel]['label'],'Next');
  }

Reinstall does not help - how can i switch that off

 

Edited: 6 years ago#10290

juergen
1.5K Posts
65K Downloads
16 Plugins

Edit nextprevious.php

Add '$langmessage' to line 3:

global $page,$gp_index,$gp_titles,$gp_menu, $langmessage;

after line 30 add this line:

$label = isset($gp_titles[$nextLevel]['label']) ? $gp_titles[$nextLevel]['label'] : $langmessage($gp_titles[$nextLevel]['lang_index']);

and change the (then) line 32 to:

echo common::Link($label,'Next');

Hope it works (not tested)

 

6 years ago#10291

mabu
458 Posts
8.1K Downloads
5 Themes
9 Plugins

After installing the typesetter-master 'include'-dirctory  the error was regarding line 27 instead of 31

Applying  your patch I got

Parse error: syntax error, unexpected ''$langmessage'' (T_CONSTANT_ENCAPSED_STRING), expecting variable (T_VARIABLE) or '$' in /mnt/web020/a1/95/51478895/htdocs/Lehre2017/data/_addoncode/tbuvdiq/nextprevious.php on line 3

and the sidebar disappeared and the bootstrap-style was flat (losses of extra-layout-css)

--After reinstallation of the old nextprevious.php i get  again (not on all sites only on some..)

Undefined index: label
    in: /mnt/web020/a1/95/51478895/htdocs/Lehre2017/data/_addoncode/tbuvdiq/nextprevious.php
    on line: 31
    Request: /-
    Method: GET

i also got ( - , contact and test are sitenames)

Notice: Undefined index: _extra_0 in /mnt/web020/a1/95/51478895/htdocs/Lehre2017/data/_addoncode/tbuvdiq/nextprevious.php on line 31

and

Undefined index: 9k
    in: /mnt/web020/a1/95/51478895/htdocs/Lehre2017/data/_addoncode/tbuvdiq/nextprevious.php
    on line: 5
    Request: /test
    Method: GET

Undefined index: _extra_0
    in: /mnt/web020/a1/95/51478895/htdocs/Lehre2017/data/_addoncode/tbuvdiq/nextprevious.php
    on line: 27
    Request: /Contact
    Method: GET

 

After reinstallation and emptying the cache the messages disappeared - hopefully for ever .

 

Edited: 6 years ago#10292

juergen
1.5K Posts
65K Downloads
16 Plugins

Hmm, maybe better try to use this plugin

PrevNextNav Extended

instead. Its based on PrevNextNav 1.0 by folke and fly06fr but has a few more options. See its Admin Page.

Needs to be installed manually:
Unpack the ZIP into your /addons directory and install it via
Admin Toolbox -> Plugins -> Manage -> Available -> Install

After installation you will need to add the "PrevNextNav Gadget" e.g. to the "AfterContent" Area via Layout Editor.

 

Edited: 6 years ago#10295

juergen
1.5K Posts
65K Downloads
16 Plugins

Notice: Undefined index: _extra_0

Yes, since Exrta Areas in Menus in new in 5.1, older plugins will not be able to deal with it properly.

I'll have to test the abovementioned plugin for that.... will likely need a fix, too.

6 years ago#10296

juergen
1.5K Posts
65K Downloads
16 Plugins

Ok, PrevNextNav Extended needs to be updated for Typesetter 5.1

I will post a link when it's ready.

But I wonder if I rather should make 'Prev Next Navigation' a built-in Menu Type in 5.1?

6 years ago#10298

mabu
458 Posts
8.1K Downloads
5 Themes
9 Plugins

The extended nav gives me

Notice (8)
Undefined index: label_prev
    in: /mnt/web020/a1/95/51478895/htdocs/Lehre2017/addons/PrevNextNav-Extended/PrevNextLinks_Gadget.php
    on line: 98
    Request: /Hermetics
    Method: GET
Show Backtrace

array(
   [0] => array(
      [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/addons/PrevNextNav-Extended/PrevNextLinks_Gadget.php
      [line] => (integer)70
      [function] => (string)_makelink
      [class] => (string)PrevNextLinks_Gadget
      [object] => (string)object PrevNextLinks_Gadget
      [type] => (string)->
      [args] => (string)array(2)
   )
   [1] => array(
      [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/addons/PrevNextNav-Extended/PrevNextLinks_Gadget.php
      [line] => (integer)11
      [function] => (string)_prevNextLinks
      [class] => (string)PrevNextLinks_Gadget
      [object] => (string)object PrevNextLinks_Gadget
      [type] => (string)->
      [args] => (string)array(0)
   )
   [2] => array(
      [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/include/tool/Output.php
      [line] => (integer)647
      [function] => (string)__construct
      [class] => (string)PrevNextLinks_Gadget
      [object] => (string)object PrevNextLinks_Gadget
      [type] => (string)->
      [args] => (string)array(1)
   )
   [3] => array(
      [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/include/tool/Output.php
      [line] => (integer)622
      [function] => (string)ExecClass
      [class] => (string)gp\tool\Output
      [type] => (string)::
      [args] => (string)array(4)
   )
   [4] => array(
      [file] => (string)/mnt/web020/a1/95/51478895/htdocs/Lehre2017/include/tool/Output.php
      [line] => (integer)576
      [function] => (string)_ExecInfo
      [class] => (string)gp\tool\Output
      [type] => (string)::
      [args] => (string)array(2)
   )
)

After deinstallation and new download of the old nextprevious i have only very rare error-windows and hope i can live with it.

Edited: 6 years ago#10299

feniweb
298 Posts

PrevNextNav

Mit diesem Plugin hatte ich auch meine Probleme. Eine Lösung innerhalb von TS würde Sinn machen.

 

PrevNextNavigation 1.0 (PrevNextNav-Extended 1.0.1)

Zu Beachten:

Auch verschachtelte Seiten auch bis Ebene 3 oder 4?

Es ist mehrere Navigationen, die auch in der Hauptnavigation erscheinen

Auch Navigationen die Versteckt sind aber die Seiten sichtbar zB bei Portfolios

Wenn man das Plugin Katalog verwendet kann unter gewissen Umständen zwei PrevNextNav erscheinen.

Anregung:

Evtl bei jeder Seite angeben über ein Checkbox PrevNextNav einblenden oder nicht

Edited: 6 years ago#10303

mabu
458 Posts
8.1K Downloads
5 Themes
9 Plugins

I think i found the reason : I hada hidden site in which i collected bootstrap-codesnippets.

After the site had become quite long i was no loner able to see the sourcecode in ckeditor.

So i created 3 hidden sites and sought the snippets (i preserved the links) in the web and

distributed them on the 3 pages and deleted the original site. After that i had no further errors.

6 years ago#10344

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In

  Register