We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    Hello,

    when I try to start the Doc Manager, I get the following error:

    [tt]Parse error: syntax error, unexpected ’(’, expecting ’}’ in /homepages/24/d12326103/htdocs/content/assets/modules/docmanager/classes/dm_backend.class.php on line 77[/tt]

    Anybody else having this?
    Martin
      • 10487 MODX Staff
      • 1,535 Posts
        Garry Nutting
        Senior Developer
        MODX, LLC

        Email: [email protected]
        Twitter: @garryn
        Web: modx.com
        • 10313
        • 375 Posts
        Thanks for pointing smiley
          • 17723
          • 221 Posts
          Hi,

          I’ve changed line 77 to:
          $sql = "UPDATE $this->modx->getFullTableName('site_content') set menuindex=" . $key . " WHERE id=" . $id;

          and right now Doc Manager starts just with headings: Change template, Template Variable, ....
          but there is no content to select.

          luke
            Lucas from AroundCyprus.net
            • 10487 MODX Staff
            • 1,535 Posts
            The correct fix is:
            $sql = "UPDATE " . $this->modx->getFullTableName('site_content') . " set menuindex=" . $key . " WHERE id=" . $id;

            I think the above is the only instance which will need to be fixed, but I’ve not had chance yet to have a proper scan through to make sure.
              Garry Nutting
              Senior Developer
              MODX, LLC

              Email: [email protected]
              Twitter: @garryn
              Web: modx.com
              • 17723
              • 221 Posts
              Unfortunetly, this fix didn’t help sad
              Any more ideas, where could be the problem?

              luke
                Lucas from AroundCyprus.net
                • 10487 MODX Staff
                • 1,535 Posts
                Hi Luke, any clues being output to your PHP error log? There maybe another issue affecting DocManager on your install.
                  Garry Nutting
                  Senior Developer
                  MODX, LLC

                  Email: [email protected]
                  Twitter: @garryn
                  Web: modx.com
                  • 10313
                  • 375 Posts
                  Well in my installation, it is all the same. I do not get the error message from my original post, but just as lx, I only see empty tabs with no content.
                    • 36702
                    • 76 Posts
                    I’m getting empty tabs in DocManager too. I added error_reporting(E_ALL); to the top of dm_backend.class.php and got a long list of notices:
                    Notice: Undefined variable: php_errormsg in /home/myname/public_html/manager/processors/execute_module.processor.php on line 117
                    Notice: Undefined variable: charset in /home/myname/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php on line 86
                    Notice: Undefined variable: charset in /home/myname/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php on line 86
                    Notice: Undefined property: id in /home/myname/public_html/manager/includes/controls/datagrid.class.php on line 56
                    Notice: Undefined index: DM_tpl_no_templates in /home/myname/public_html/assets/modules/docmanager/classes/dm_frontend.class.php on line 27
                    Notice: Undefined index: DM_tpl_column_id in /home/myname/public_html/assets/modules/docmanager/classes/dm_frontend.class.php on line 32
                    Notice: Undefined index: DM_tpl_column_name in /home/myname/public_html/assets/modules/docmanager/classes/dm_frontend.class.php on line 32
                    Notice: Undefined index: DM_tpl_column_description in /home/myname/public_html/assets/modules/docmanager/classes/dm_frontend.class.php on line 32
                    Notice: Undefined property: pagerClass in /home/myname/public_html/manager/includes/controls/datagrid.class.php on line 150
                    Notice: Undefined property: pagerStyle in /home/myname/public_html/manager/includes/controls/datagrid.class.php on line 151
                    Notice: Undefined index: template in /home/myname/public_html/manager/includes/controls/datagrid.class.php on line 83
                    Notice: Undefined offset: 1 in /home/myname/public_html/manager/includes/controls/datagrid.class.php on line 79
                    etc..

                    Is this information even slightly useful?

                    The tab contents seem to be populated with javascript, so maybe it’s a js problem?
                      • 3647
                      • 177 Posts
                      I have the same issue

                      At first the error message
                      Then change line 77 as suggested
                      Now just get the tab headers but nothing in the tabs

                      Doesn’t help in the long run, but if you replace assets/docmanager with the version from 0.9.6.3 and change the module code to the old version then it seems to work (just some small styling issues)