0
Welcome Guest! Login
0 items Join Now

Error: Call ... function render() and building paths to css na js files

  • Error: Call ... function render() and building paths to css na js files

    Posted 10 years 5 months ago
    • Hi,
      I have problem with Joomla template: Nuance 1.1 Rocketlauncher j33 (nuance-1.1-rocketlauncher_j33.zip).
      I've installed this package of Joomla 3.3 with template Nuance on server in home.pl/
      When I set the option "subdirectory without separation" (Włącz przekierowanie na podkatalog bez separacji serwisu) in administration panel (home.pl) than I have this error:

      Fatal error: Call to a member function render() on a non-object in /konta/nowastrona/libraries/gantry/core/renderers/gantrymodulesrenderer.class.php on line 65

      and in source code I can see information:
      <jdoc:include type="head" />
      </head>
      <body <!-- Unable to render layout... can not find layout class for doc_body -->>
      	<div id="rt-page-surround">

      but when I set the option "subdirectory with separation" (Włącz przekierowanie na podkatalog z separacją serwisu) some of paths to scripts and css files look like:
       <link rel="stylesheet" href="/componentscom_roksprocketlayoutsgridsthemesbasicbasic.css" type="text/css" />
       <link rel="stylesheet" href="/templatesrt_nuanceroksprocketlayoutsheadlinesthemesdefaultheadlines.css" type="text/css" />
       <link rel="stylesheet" href="/templatesrt_nuanceroksprocketlayoutsfeaturesthemesscrollerscroller.css" type="text/css" />
      ...
       <script src="/componentscom_roksprocketassetsjsmootools-mobile.js" type="text/javascript"></script>
       <script src="/componentscom_roksprocketassetsjsrokmediaqueries.js" type="text/javascript"></script>
       <script src="/componentscom_roksprocketassetsjsroksprocket.js" type="text/javascript"></script>

      On the other server is everything correct.

      I don't know if this is problem with Nuance template, Gantry, Joomla or something else.

      It looks like some configurations of server do it.

      Thank you very much in advance!

      Przemek
    • Last Edit: 10 years 5 months ago by Wydawnictwo. Reason: Change title to be more suitable
  • Re: Error: Call to a member function render()

    Posted 10 years 5 months ago
    • Hi,

      Sorry for my English,

      Summarizing is Your site correct or not?
      Do you already contacted with the help of home.pl?
      Did You check that Your server using correct version of PHP?
      Where this error is display on frontend or on backend?

      If this page in on the server please enter an URL address of this site.

      Greetings
    • Last Edit: 10 years 5 months ago by Arkas Sp. z o.o..
  • Re: Error: Call to a member function render()

    Posted 10 years 5 months ago
    • Ok, I fixed it :)

      I used option with "subdirectory with separation" (Włącz przekierowanie na podkatalog z separacją serwisu) and modified file:
      /libraries/rokcommon/RokCommon/PlatformInfo/AbstractPlatformInfo.php in line 43
      I commented this line:
      $return_url_path = $instance_url_path . str_replace($instance_filesystem_path, '', $return_url_path);

      This code removes backslashes from path and from path like this:
      /templates/rt_nuance/roksprocket/layouts/features/themes/scroller/scroller.css
      makes path like this:
      /templatesrt_nuanceroksprocketlayoutsfeaturesthemesscrollerscroller.css

      (I hope that this won't influance other places. If so I will write it)

      After that paths to css files, js and some images are built correct.
      But even after that subpages weren't load - error 404.
      So I've turned on "Use URL rewriting" and have chenged file htaccess.txt to .htacces.

      Now it works :)

      But page still has error when I change option in home.pl to "subdirectory without separation" (Włącz przekierowanie na podkatalog bez separacji serwisu) but I left that. I only saw that it could be connected with building paths and some classes weren't loaded.

      Best regards,
      Przemek Piątek

      P.S. Thanks for trying help Arkas Sp. z o.o.
  • Re: Error: Call to a member function render()

    Posted 10 years 5 months ago
    • I sugest You to try other version of RocketLouncher to Nuance like 3.2. Try install it on local server and check that this error will display.

      Greetings
  • Re: Error: Call to a member function render()

    Posted 10 years 5 months ago
    • Additional info:

      On home.pl's server there is only "/" string in $instance_filesystem_path
      but in other server in this varaible there is "/home/someuser/ftp/subcatalog/nuance_j33" (I don't if this server is with or without separation of subdirectories)

      /libraries/rokcommon/RokCommon/PlatformInfo/AbstractPlatformInfo.php in line 43
      $return_url_path = $instance_url_path . str_replace($instance_filesystem_path, '', $return_url_path);

Time to create page: 0.073 seconds