31
Mamba
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 11:51

  • Mamba

  • Moderator

  • Posts: 11201

  • Since: 2004/4/23


heh26, first, don't include your domain in your posts! I have replaced it with "xxxx"

Secondly, did you download and install the modules from the "classic" branches? All of them have to be "classic"
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

32
heh26
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 15:52

  • heh26

  • Just popping in

  • Posts: 15

  • Since: 2020/3/2 1


/public_html/modules/happy_linux/class/time.php on line 69
Call Stack
# Time Memory Function Location
1 0.0006 268328 {main}( ) .../index.php:0
2 0.0009 306984 include_once( '/home/public_html/modules/weblinks/admin/admin_header_min.php' ) .../index.php:49


All modules are in Clasic version

33
zyspec
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 17:38

  • zyspec

  • Module Developer

  • Posts: 1089

  • Since: 2004/9/21


@heh 26,

I think you should be able to change ./class/time.php line 69 from:
[$count$time_now$time_elapse$time_lap] = $this->get_lap_time();

to:
list($count$time_now$time_elapse$time_lap) = $this->get_lap_time();

34
heh26
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 19:57

  • heh26

  • Just popping in

  • Posts: 15

  • Since: 2020/3/2 1


Parse error: syntax error, unexpected '='

modules/happy_linux/class/time.php on line 127


public function get_microtime()
{
[$usec, $sec] = explode(' ', microtime());
$time = (float)$sec + (float)$usec;

return $time;

Thank you for the reaction, of course, I can change, but it did nothing. I still can't use the module. Regards, Rafał.

35
zyspec
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 20:07

  • zyspec

  • Module Developer

  • Posts: 1089

  • Since: 2004/9/21


I see... the same problem exists on line 127...

change:


Quote:

heh26 wrote:
Parse error: syntax error, unexpected '='

modules/happy_linux/class/time.php on line 127
[$usec$sec] = explode(' 'microtime());

to:
list($usec$sec) = explode(' 'microtime());


public function get_microtime()
{
[$usec, $sec] = explode(' ', microtime());
$time = (float)$sec + (float)$usec;

return $time;

Thank you for the reaction, of course, I can change, but it did nothing. I still can't use the module. Regards, Rafał.

36
heh26
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 20:22

  • heh26

  • Just popping in

  • Posts: 15

  • Since: 2020/3/2 1


// create a token
[$usec, $sec] = explode(' ', microtime());
$appendix_salt = empty($_SERVER['PATH']) ? XOOPS_DB_NAME : $_SERVER['PATH'];
$token = crypt($salt . $usec . $appendix_salt . $sec, XOOPS_DB_PREFIX);
$this->_latest_token = $token;


modules/happy_linux/include/gtickets.php w linii 132


Parse error: syntax error, unexpected '=' in


How do I change to : list($usec, $sec) = explode(' ', microtime());
The error continues on line 287 ...

[$tmp_table, $tmp_form] = $this->extract_post_recursive(htmlspecialchars($key, ENT_QUOTES), $val);
$table .= $tmp_table;
$form .= $tmp_form;

Parse error: syntax error, unexpected '='

modules/happy_linux/include/gtickets.php on line 287

Thank you for the quick reply.

37
heh26
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 20:28

  • heh26

  • Just popping in

  • Posts: 15

  • Since: 2020/3/2 1


I changed the way you showed in many lines by adding: letter and changing the parenthesis. And succeeded, the module works. Thank you very much. Unless there are any problems ...

38
heh26
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 20:35

  • heh26

  • Just popping in

  • Posts: 15

  • Since: 2020/3/2 1


Parse error: syntax error, unexpected '='
public_html/modules/weblinks/admin/category_manage.php on line 267

if ($imgurl) {
[
$orig_width, $orig_height, $show_width, $show_height
267--> ] = $this->_get_image_size($imgurl);


An error has already appeared ...
Can anyone help?
I can't add a new category in the module.

39
heh26
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 20:50

  • heh26

  • Just popping in

  • Posts: 15

  • Since: 2020/3/2 1


I changed to PHP 7.4 and for now everything works fine. Thank you once again.

40
tzvook
Re: Time for an upgrade/update host no longer supporting older php
  • 2020/3/21 21:00

  • tzvook

  • Just can't stay away

  • Posts: 875

  • Since: 2003/2/1 2


There's also something wrong with the link-ratings ... it always show "1" regardless of the real rate ..
couldn't find what causing it ..

Login

Username:
Password:

Lost Password? Register now!

Who's Online

82 user(s) are online (59 user(s) are browsing Support Forums)


Members: 1


Guests: 81


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits