Welcome, Guest
Username Password: Remember me

PHP Warning: default.php on line 29
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: PHP Warning: default.php on line 29

PHP Warning: default.php on line 29 4 years, 8 months ago #21588

  • Elimelech
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
[Tue Mar 10 07:10:43.063215 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning:  Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 29
[Tue Mar 10 07:10:43.063280 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning: Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 30
[Tue Mar 10 07:10:43.063294 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning: Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 29
[Tue Mar 10 07:10:43.063305 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning: Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 30
[Tue Mar 10 07:10:43.063315 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning: Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 29
[Tue Mar 10 07:10:43.063326 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning: Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 30
[Tue Mar 10 07:10:43.063337 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning: Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 29
[Tue Mar 10 07:10:43.063348 2020] [fcgid:warn] [pid 28797:tid 140197167458048] [client 66.249.64.239:0] mod_fcgid: stderr: PHP Warning: Division by zero in /domains/masite.net/public_html/templates/mobile_basic/html/com_content/frontpage/default.php on line 30


An error has appeared
How to fix it?
Last Edit: 4 years, 8 months ago by Elimelech.

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21589

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Hmm, it means you set "zero" number of columns in the frontpage menu item settings.

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21590

  • Elimelech
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
and where to look for these settings?

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21592

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Menus -> :menu with frontpage item -> menu item -> Parameters (Basic) -> Columns

What exact Joomla version do you use? (I see it's old 1.5, but what is the full version number?)

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21593

  • Elimelech
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Joomls 1.5.27 I have one column in the menu
Last Edit: 4 years, 8 months ago by Elimelech.

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21596

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Did you set another mobile homepage via "Force as homepage" setting in the Mobile Joomla! extension settings page?
Do you have other "frontpage" menu items in menus?

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21597

  • Elimelech
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Yes, no, I installed everything correctly. Maybe just some kind of glitch. The error does not appear every time, and sometimes

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21599

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Do "Force as homepage" menu item has the same menu type as your actual homepage menu item?

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21601

  • Elimelech
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
yes

Re: PHP Warning: default.php on line 29 4 years, 8 months ago #21603

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
And both of them have
Columns: 1
in its settings?

If true, It's quite strange. I'll try to reproduce it locally, but we have never met such an issue previously.

Could you insert following code into default.php (just after leading "<?php" tag, on the next line):
 
if (0 === (int) $this->params->get('num_columns')) file_put_contents(__FILE__ . '.log', $_SERVER['REQUEST_URI'] ."\nindex.php?" . http_build_query($_GET) . "\n\n\n", FILE_APPEND);
 

? (don't forget to backup original file before any changes)
It will log the URL of request (and parsed non-SEF URL) to the default.php.log file for every request that results in such an issue.
  • Page:
  • 1
  • 2
Time to create page: 0.41 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.