php 7.1 and crosstec templates (naturalway, pulse) causing errors

  • Bolzman
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 78
  • Thank you received: 0

Bolzman replied the topic: php 7.1 and crosstec templates (naturalway, pulse) causing errors

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 :-)
#230404
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: php 7.1 and crosstec templates (naturalway, pulse) causing errors

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

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#230580
  • Posts: 23
  • Thank you received: 0

CalaMur replied the topic: php 7.1 and crosstec templates (naturalway, pulse) causing errors

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
#232725
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: php 7.1 and crosstec templates (naturalway, pulse) causing errors

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

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#232726
  • Posts: 23
  • Thank you received: 0

CalaMur replied the topic: php 7.1 and crosstec templates (naturalway, pulse) causing errors

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
#232741
  • Posts: 5958
  • Karma: 119
  • Thank you received: 554

MarioPuco replied the topic: php 7.1 and crosstec templates (naturalway, pulse) causing errors

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

Satisfied with our Support ?
PayPal Tip
===============================================
Need to renew Pro Support?
Buy Here!
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
#232742
Moderators: tomeperica
Time to create page: 0.043 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

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

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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 to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here