Advertisement:

Author Topic: What';s causing this subs.php error please?  (Read 782 times)

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 922
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
What';s causing this subs.php error please?
« on: February 25, 2019, 05:26:47 AM »
A whole bunch have cropped up on Feb 22.
I've no idea where to start so any and all help welcome :)

Code: [Select]
Check all 
 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: General
2: Invalid argument supplied for foreach()
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 3803)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: General
2: array_reverse() expects parameter 1 to be array, null given
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 3803)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: template_layers
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 3803)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: General
2: Invalid argument supplied for foreach()
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 3686)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: template_layers
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 3686)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: can_register
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 4618)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: id
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 4484)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: id
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 4475)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: is_guest
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 4470)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: can_mod
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 4451)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index:
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Subs.php (Line 3091)

 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: General
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 Guest
 Feb 22, 2019, 11:36 am
 41.160.193.193
 057b92833e6e2496c9fab783b817e4d1
 Type of error: Undefined
8: Undefined index: You can only login via HTTPS
 https://www.droneflightforum.com/index.php?action=help%3Bsa=rules;sslRedirect
 /home/dronefli/public_html/Sources/Errors.php (Line 220)


Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,949
Re: What';s causing this subs.php error please?
« Reply #1 on: February 25, 2019, 06:11:55 AM »
So what mods do you have? What is line 3803?

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 922
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: What';s causing this subs.php error please?
« Reply #2 on: February 25, 2019, 06:35:02 AM »
mods - only TinyPortal.

I note this is anew thing not seen prior to Feb 22 and forum has been in place for several weeks longer than that.

subs php attached. (edit: deleted)

Code: [Select]
3802
3803  foreach (array_reverse($context['template_layers']) as $layer)
3804 loadSubTemplate($layer . '_below', true);
3805  }
« Last Edit: February 25, 2019, 07:03:50 AM by landyvlad »
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 922
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: What';s causing this subs.php error please?
« Reply #3 on: February 25, 2019, 06:48:38 AM »
It's also been pointed out to me that, if I hover over the help link on my forum I get this:

Code: [Select]
https://www.droneflightforum.com/index.php?PHPSESSID=1b9e08fc6807ab4316724a5abc20e23a&action=help
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,400
  • Gender: Male
    • Kindred-999 on GitHub
Re: What';s causing this subs.php error please?
« Reply #4 on: February 25, 2019, 06:54:01 AM »
And what is wrong with that help url?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,949
Re: What';s causing this subs.php error please?
« Reply #5 on: February 25, 2019, 06:59:24 AM »
The help URL is normal if you’re a guest. Not normal under other circumstances.

Unfortunately I can’t look at the attachment while on my iPad at work...

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 922
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: What';s causing this subs.php error please?
« Reply #6 on: February 25, 2019, 07:07:28 AM »
OK well,

It would appear that my htaccess file for this forum was blank.

So I grabbed the htaccess file from here, specifically
Code: [Select]
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

and everything appears to be working as it should now.

Cheers all, and thanks.
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.