TOPIC:

php 7.1 and crosstec templates (naturalway, pulse) causing errors 5 years 1 week ago #230404

  • Topic Author
  • Bolzman
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 78
  • Thanks: 0
ah, OK. so there are no more topics to consider.

Many thanks again.
I am a User - not a Coder. So please do give me exact information on what to do :-)

Please Log in or Create an account to join the conversation.

php 7.1 and crosstec templates (naturalway, pulse) causing errors 5 years 5 days ago #230580

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 5957
  • Thanks: 558
Hello all,

so Joomla 3.8 removed entire document folder in libraries/joomla/ which was there in Joomla 3.7.5

Gantry is using a class JDocumentRendererHead from /joomla/document/html/renderer/head.php file and currently it cant find becuause it doesnt exists so temporary solution/fix is adding this code in 2 files offline.php and error.php:

/templates/YOURTEMPLATE/offline.php
/templates/YOURTEMPLATE/error.php

if(!class_exists('JDocumentRendererHead')) {
    require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');
}

instead of
require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');

That will fix the issue, use it until RocketTheme release a new Gantry 4 fix ;)

Regards,
Mario

Please Log in or Create an account to join the conversation.

php 7.1 and crosstec templates (naturalway, pulse) causing errors 4 years 9 months ago #232725

  • CalaMur
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 43
  • Thanks: 1
Hello Mario,

I run Sportsdigga 1.6 on Gantry 4.1.37 on Joomla 3.9.1 with PHP 7.0.33.
All works fine; unfortunately the PHP version is no longer supported. When I upgrade to PHP 7.1.25 or 7.2.13 the webpage is not showing anymore. Reading the support forum I found this thread and replaced the code
if(!class_exists('JDocumentRendererHead')) {
require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');
}
in the two files offline and error as described above.

No I get the following error message:
ERROR: 0 - USING $THIS WHEN NOT IN OBJECT CONTEXT
You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.

Do you have any idea which changes I need to apply to get the webpage running on a supported php version?

Thank you for your help!

Alexander

Please Log in or Create an account to join the conversation.

php 7.1 and crosstec templates (naturalway, pulse) causing errors 4 years 9 months ago #232726

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 5957
  • Thanks: 558
Hi,

Did you add this fix as well ? : crosstec.org/en/forums/38-foren/124489-t...precated.html#227989

Are you using CB or have any custom code inside your form ?

Regards,
Mario

Please Log in or Create an account to join the conversation.

php 7.1 and crosstec templates (naturalway, pulse) causing errors 4 years 9 months ago #232741

  • CalaMur
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 43
  • Thanks: 1
Hello Mario,

Thank you for the quick reply. I have now also applied the changes in the color.php but unfortunately I still get the same error message.
I don't have any customized code in the template. I only use Gantry for certain settings / changes.
I also use Breezing Forms Pro on the page; not sure if this information is relevant for you.

Alexander

Please Log in or Create an account to join the conversation.

php 7.1 and crosstec templates (naturalway, pulse) causing errors 4 years 9 months ago #232742

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 5957
  • Thanks: 558
Hi,

If you added both fixes from this topic : crosstec.org/en/forums/38-foren/124489-t...precated.html#227989 than problem is not template itself but the form you are using.

Are you using some custom code in your form ? If you are remove them just for the purpose of testing and it should work.
Check if you have $this somewhere in your form custom code.

Regards,
Mario

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!