We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2901
    • 277 Posts
    I would need urgently to update a clients site but I can not edit any resource. As soon as I want to open a resource I get the following error.

    Fatal error: Call to a member function addLexiconTopic() on a non-object in /httpdocs/core/cache/includes/elements/modplugin/10.include.cache.php on line 56


    in the same installation I am also not able to upgarde the gallery, I get the following error.

     <br />
    <b>Strict Standards</b>:  strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in <b>/httpdocs/core/xpdo/xpdo.class.php</b> on line <b>1630</b><br />
    [2012-11-27 08:18:15] (ERROR @ /httpdocs/core/xpdo/compression/xpdozip.class.php : 142) PHP warning: ZipArchive::extractTo() [<a href='ziparchive.extractto'>ziparchive.extractto</a>]: File exists
    [2012-11-27 08:18:15] (ERROR @ /connectors/workspace/packages.php) Could not unpack package /httpdocs/core/packages/gallery-1.5.2-pl.transport.zip to /httpdocs/core/packages/. SIG: gallery-1.5.2-pl
    


    Anyone any Idea how I could solve that problem?

    System:
    Revo 2.1.3pl
    MySql 5.0.77
    Server API CGI/Fast CGI

    Your Help is much appreciated
    Beat
      • 2901
      • 277 Posts
      Just checked the file mentioned in the error, this must be a problem with the gallery.
      Hope anyone can help me soon.

      Thanks a lot
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Sounds like the hosting company upgraded its version of PHP. You need to do what it says in the error message
        <b>Strict Standards</b>:  strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in <b>/httpdocs/core/xpdo/xpdo.class.php</b> on line <b>1630</b><br />

        If you can access the php.ini file or create a custom php.ini file you can set the date.timezone, or use some other method of setting a default date_timezone for PHP to use.

        http://php.net/manual/en/function.date-default-timezone-set.php
        http://codingpad.maryspad.com/2012/03/19/setting-the-time-zone-for-php-5-3-x/
        https://forums.modx.com/thread/73018/2-2-0-pl2-cannot-change-template-on-new-resource-console-errors#dis-post-405901

        If your date/time settings do not match between your MODx installation, PHP and the MySQL server you can have problems like you have posted.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 2901
          • 277 Posts
          Hi Susan

          thanks for the quick reply, but it does not solve the problem. I've set the timezone in php.ini to

          date.timezone =  Europe/Zurich


          still get this error message when opening a resource

          Fatal error: Call to a member function addLexiconTopic() on a non-object in /var/www/vhosts/blablabla/httpdocs/core/cache/includes/elements/modplugin/10.include.cache.php on line 56


          line 56 in 10.include.cache.php is
           $modx->controller->addLexiconTopic('gallery:tv');


          thanks
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Try manually deleting all the cache folders in core/cache/
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 2901
              • 277 Posts
              Quote from: sottwell at Nov 27, 2012, 02:09 AM
              Try manually deleting all the cache folders in core/cache/

              just did that, the error persists

               Fatal error: Call to a member function addLexiconTopic() on a non-object in /var/www/vhosts/blablabla/httpdocs/core/cache/includes/elements/modplugin/10.include.cache.php on line 56
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Hmm. So plugin #10 is the "galleryCustomTV" plugin?
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 2901
                  • 277 Posts
                  Quote from: sottwell at Nov 27, 2012, 02:17 AM
                  Hmm. So plugin #10 is the "galleryCustomTV" plugin?

                  it is actually on position 13, I'll ty to install it again, maybe that helps.
                    • 2901
                    • 277 Posts
                    OK tired to install it again - same problem, what is strange is that the gallery is working but it says it is not installed. the gallery itself has permission 755.
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      The problem is with a plugin #10. What is that plugin?
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org