0
Welcome Guest! Login
0 items Join Now

Gantry Cache - How to disable completely or for a specific component

  • Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • Joomla v3.3.6
      Gantry v4.1.2.7
      RT_Myriad v1.1

      Hi, appears that the Gantry Cache is causing numerous errors with my shopping cart pages. I am using Mijoshop v3.0.3. Specifcally, I am getting warnings that Fopen failed to open stream: No such file or director and flock() expects parameter 1 to be resource, boolean.

      Is there anyway to disabe the Gantry cache in whole or at least for a specific component or page a component/module is on?

      Thanks
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • pscharfg wrote:
      Joomla v3.3.6
      Gantry v4.1.2.7
      RT_Myriad v1.1

      Hi, appears that the Gantry Cache is causing numerous errors with my shopping cart pages. I am using Mijoshop v3.0.3. Specifcally, I am getting warnings that Fopen failed to open stream: No such file or director and flock() expects parameter 1 to be resource, boolean.

      Is there anyway to disabe the Gantry cache in whole or at least for a specific component or page a component/module is on?

      Thanks

      Are you referring to RokBooster? There is no native Gantry cache that we make for Joomla. The only caching systems in play on our RocketLauncher installs are those of Joomla.

      Why do you believe your error message is related to Gantry?

      It would also help if highlighted the error message and included it verbatim.
  • Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • Hi Dan. Thanks for responding - I really appreciate your help. Before posting my question, I had already spent hours trying to troubleshoot. I removed RokBooster, disabled the Joomla cache in the control panel and also disabled the system-cache plugin. Further, I disabled the Less compiler (by using the toggled in the template) which seems to also have a caching component to it.

      The errors I get differ each time but here are two that are fairly representative. They appear in the header seection and often times in other divs.

      Warning: fopen(/home3/mywebserver/cache/Gantry/085e2a4d388bb25dd69b92c7aaff2ffe-cache-Gantry-7f7a6cc431ec54103cf14850a2dc51fe.php): failed to open stream: No such file or directory in /home3/mywebserver/libraries/joomla/cache/storage/file.php on line
      Warning: flock() expects parameter 1 to be resource, boolean given in /home3/mywebserver/libraries/joomla/cache/storage/file.php on line

      For some reason, the errors do not include line numbers.

      The errors/warnings occur when the page is first viewed after the gantry cache is cleared (which if caching is disabled should always remain empty - it doesn't).

      I have tried this on a brand new install of Joomla as well.

      I am confused by "There is no native Gantry cache that we make for Joomla. The only caching systems in play on our RocketLauncher installs are those of Joomla." since in my cache folder their is "Gantry" and "GantryLess" which I can clear and then they repopulate even with all the above disabled. Further, there seems to be coding for caching in /mywebserver/libraries/gantry/core/gantryclass.php

      I'm happy to give you admin access to the server.

      Thanks again.
    • Last Edit: 9 years 3 months ago by pscharfg.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • pscharfg wrote:
      I am confused by "There is no native Gantry cache that we make for Joomla. The only caching systems in play on our RocketLauncher installs are those of Joomla." since in my cache folder their is "Gantry" and "GantryLess" which I can clear and then they repopulate even with all the above disabled. Further, there seems to be coding for caching in /mywebserver/libraries/gantry/core/gantryclass.php

      Unlike Joomla's caching schemes and RokBoosters the Gantry and GantryLess are strictly involved with the compilation of our LESS files into the generated master.css file. We've never seen errors with these cached folders as they are written to your sites "cache" folder which should ALWAYS have the correct permissions and ownership.

      Let's try one more intensinve round of debugging. Debugging a blank front page:

      Requirements for Joomla! 3.x
      SoftwareRecommendedMinimumMore information
      PHP (Magic Quotes GPC off)[1]5.4 +5.3.10 + http://www.php.net
      Supported Databases:
      MySQL (InnoDB support required)5.1 +5.1 + http://www.mysql.com
      SQL Server10.50.1600.1+10.50.1600.1+ http://www.microsoft.com/sql
      PostgreSQL8.3.18 +8.3.18 + http://www.postgresql.org/
      Supported Web Servers:
      Apache[2]

      (with mod_mysql, mod_xml, and mod_zlib)
      2.x +2.x + http://www.apache.org
      Nginx1.11.0 http://wiki.nginx.org/
      Microsoft IIS[5]77 http://www.iis.net
      Check that Admin -> Site or System -> System Information -> PHP Information ->Core-> memory_limitis 128MB or higher.


      Requirements for Joomla! 2.5
      SoftwareRecommendedMinimumMore information
      PHP5.4 +5.2.4 + http://www.php.net
      Supported Databases:
      MySQL5.0.4 +5.0.4 + http://www.mysql.com
      SQL Server[4]10.50.1600.1+10.50.1600.1+ http://www.microsoft.com/sql
      Supported Web Servers:
      Apache[2]

      (with mod_mysql, mod_xml, and mod_zlib)
      2.x +2.x + http://www.apache.org
      Nginx1.11.0 http://wiki.nginx.org/
      Microsoft IIS[5]77 http://www.iis.net
      Check that Admin -> Site or System -> System Information -> PHP Information ->Core-> memory_limitis 128MB or higher.


      Footnotes
      1. PHP 5.3.1 is required for versions 3.0 through 3.2. At 3.3, the minimum is raised to PHP 5.3.10.[/p]
      2. In order to use SEO URLs, you will need to have the Apache mod_rewrite extension installed.[/p]
      3. Do not use PHP 4.3.9, 4.4.2 or 5.0.4. These releases have known bugs that will interfere with installation. Zend Optimizer 2.5.10 for PHP 4.4 also has serious bugs and you should ask your host to upgrade to a newer version. Joomla! versions 1.5.15 and later are compatible with PHP 5.3. Note that the OpenID library is not compatible with PHP 5.3.
      4. Support for Microsoft SQL Server was added for the 2.5 release; 1.6 and 1.7 do not have this support.
      5. For further assistance using Microsoft IIS, visit the Joomla! IIS forum

      Configuration Options
      If installing on a local computer, there are a number of packages that will help you get set up quicker than individual
      installations:
      For DataBase issues check :

      Admin -> Extend or Extensions -> Extension Manager -> Database and if there are errors then in the upper RightHand corner of the page click the FIX button.



      For ownership or permission issues check :
      • Check your folder permissions here:Admin -> Site or System -> System Information -> Directory Permissions to ensure they're writeable - which is all GREEN (except configuration.php which should be RED)
      • Check folders have 0755 permissions and that files are 0644 and that Owner/Group are correct (you can use an FTP client or FPA mentioned below).
      • Specifically check the ../cache and the ../templates/rt_templateName/css-compiled folders.
      • check Admin -> Site or System -> System Information -> System Information Tab->
        Web Server to PHP interface: apache2handler -or- CGI / FastCGI ? Joomla prefers CGI / FastCGI
        • Use the Joomla Forum Post Assistant to do more detailed checks.
        • Download the attached Joomla Forum Post Assistant "fpa-en.zip" file your to HDD.
        • Extract out the file "fpa-en.php" and Upload this to your servers Joomla ROOT folder
        • Open a browser window and run http://my-site.com/fpa-en.php
        • Post your findings to see if there are problems
  • Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • I'll double check and get back to you.
  • Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • Hi Dan, I triple checked everything and the server config is fine. I also ran the script you sent which also shows no errors. Do you want me to post it anyway? In doing some more troubleshooting, I assigned the menu link to use the standard Joomla template for one of the pages that was generating errors to use the standard Joomla template. I then cleared the Gantry cache, visited the page and there were no errors. Further, as expected Gantry did not generate a cache file until I visited a page that used the Rockettheme/gantry template. The page consisted of only a module for Mijoshop. So is it possible that Gantry is somehow caching something that Mijoshop is also caching? If so, is there some code I can add to elimate caching of that component? Keep in mind all caching plugins have been removed or disabled.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • pscharfg wrote:
      Hi Dan, I triple checked everything and the server config is fine. I also ran the script you sent which also shows no errors. Do you want me to post it anyway? In doing some more troubleshooting, I assigned the menu link to use the standard Joomla template for one of the pages that was generating errors to use the standard Joomla template. I then cleared the Gantry cache, visited the page and there were no errors. Further, as expected Gantry did not generate a cache file until I visited a page that used the Rockettheme/gantry template. The page consisted of only a module for Mijoshop. So is it possible that Gantry is somehow caching something that Mijoshop is also caching? If so, is there some code I can add to elimate caching of that component? Keep in mind all caching plugins have been removed or disabled.

      Thanks for the diligent debugging effort.

      Okay...let's go nuclear on it - would you please create a Super Admin login for me along with FTP access info and place it in the SECURE part of your Reply

      This image is hidden for guests.
      Please log in or register to see it.


      so that I can take a look.
  • Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • This message contains only secure information that is visible to DanG, moderators and administrators
    • Last Edit: 9 years 3 months ago by pscharfg.
  • Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • Hi Dan,

      It's been 3 days since I posted the login info and Joomla shows you haven't logged in yet. I can imagine the volume of questions you respond to is enourmous but I just wanted to make sure you receied the login info and this issue didn't get lost in the fray.
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: Gantry Cache - How to disable completely or for a specific component

    Posted 9 years 3 months ago
    • pscharfg wrote:
      Hi Dan,

      It's been 3 days since I posted the login info and Joomla shows you haven't logged in yet. I can imagine the volume of questions you respond to is enourmous but I just wanted to make sure you receied the login info and this issue didn't get lost in the fray.

      Thanks for the reminder. Please check the SECURE part of my reply.

Time to create page: 0.067 seconds