| Posted: 20 Jan 2010 20:26 |
|
|
|
Registered User Currently Offline
|
Posts: 3
Join Date: Jan 2010
|
I was using the Last-Post-Addon since a few month without any Problems in my normal PHP-Files.
Now i redesigned my whole Website with the Content Managment System CMS2Day (http://www.cms2day.de/1.home/), as i tried to include the Last PostAddon into a PHP-Page of the CMS i got the following message:
Warning: Division by zero in /home/www/********.de/htdocs/forum/code/skinning.php on line 131
Warning: Division by zero in /home/www/********.de/htdocs/forum/code/skinning.php on line 131
Warning: Division by zero in /home/www/********.de/htdocs/forum/code/skinning.php on line 131
Also the CMS2Day Counter at the Bottom of the Page was broken:
argument is not a valid MySQL result resource in /home/www/********.de/htdocs/cms/includes/config.inc.php on line 1875
Bisher Besucher
Any Idea? Any help is welcome
|
| Posted: 20 Jan 2010 20:50 Last Edited By: Hristo |
|
|
|
Administrator
|
Posts: 1189
Join Date: Mar 2005
|
|
Line 131 in skinning.php is Code:
$lastpage = ceil($numposts/$postsperpage); $postsperpage is defined in seo-board_options.php, but the error indicates it is not defined as a global variable.
|
| Posted: 21 Jan 2010 00:47 |
|
|
|
Registered User Currently Offline
|
Posts: 3
Join Date: Jan 2010
|
Thanks very much but...
...that means i have to delete/edit/replace what?
|
| Posted: 21 Jan 2010 19:07 |
|
|
|
Administrator
|
Posts: 1189
Join Date: Mar 2005
|
|
That probably means that seo-board_options.php is not included by the script and hence the $postsperpage are not defined. Check out the paths in the require commands in lastposts_addon.php.
|
| Posted: 23 Jan 2010 19:52 |
|
|
|
Registered User Currently Offline
|
Posts: 3
Join Date: Jan 2010
|
Thanks a lot!
Will do. If everything fails i simply include the AddOn into an other PHP and will load it via iframe -I already tried it - Works
|