TOPIC:

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

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

Happy New Year fist of all!
Before X-Mas we discussed via email that you will start to investigate the topic in the new year. I would like to follow up on this now. Today I installed the latest version of Gantry (4.1.39) and tried the php versions 7.1.26; 7.2.14 and 7.3.1.
Unfortunatly without any success. The page / form is still running only on 7.0.33.
Please let me know which php version you would like me to setup for your tests. Please keep in mind that the page is down as soon as I change the php-version.

Thank you for your support

Alexander

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

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

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

Can you set it to PHP 7.2 and send me backend access to your website please ?
Also you can include your sites FTP access too.
Send your info to mario.puco@crosstec.org and I will get back to you with what I find.

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 7 months ago #233624

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

If you get the following error message due to an php upgrade just disable the plugin "Systems - Expires Headers". Then the Joomla Page will run on PHP 7.2!

@ Marco: You can close the ticket now :-)

Here the 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.

Have a nice day!

Alexander

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

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

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 5957
  • Thanks: 558
@Calamur

Thanks for sharing this with us as I'm sure it will help other users if they find a simmilar issue.

Regards,
Mario

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

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

  • nem13es
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 26
  • Thanks: 0
Hi Mario, i have a similar problem in this site, that i´ve move to another server with another version of php, i´m using cleanlogic 3 and the error message is:


Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Color has a deprecated constructor in /var/www/vhosts/pacoalvarez.com/httpdocs/templates/cleanlogic3/features/color.php on line 11

Could you tell me what changes i´ve to do because are similar than pulse but not exactly the same.

Tnks 4 all.

MarioPuco wrote: Hey there,

- make sure you have latest Gantry 4 (4.1.32)
- go to templates/pulse/features/color.php and on line 13 change:
function Color($hex) -> function __construct($hex)
- next go to templates/pulse/html/mod_roknavmenu/themes/gantry-dropdown/layout.php and on line 96 change:
$ul_css = ''; -> $ul_css = [];

Let us know the result.

Regards,
Mario

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

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

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 788
Hi,

go to /templates/cleanlogic3/features/color.php on line 11 you will find something like this:
class Color {

	function Color($hex){
		$this->color = $hex;
	}

set it like this (instead of function Color($hex) use function __construct($hex))
class Color {

	function __construct($hex){
		$this->color = $hex;
	}

Let me know if it helps

Regards,
Tihana

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

Last edit: Post by tihana.krivic.
Time to create page: 0.060 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!