101
sabahan
Division by Zero - xLanguage
  • 2011/9/18 3:59

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


my site is throwing random blank page in main page and certain module page..i have this error since long time ago..but only now reporting this here..

i thought it was my hoster server issue

i enabled debug ..this error is displayed

Quote:

Warning: Division by zero in file /home/portal_users/xxx/xxx_data/caches/smarty_compile/05d3d339-xlanguage-mytheme-default^%%D6^D6E^D6E59BDD%%db%3Axlanguage_block.html.php line 27
Warning: Division by zero in file /home/portal_users/xxx/xxx_data/caches/smarty_compile/05d3d339-xlanguage-mytheme-default^%%D6^D6E^D6E59BDD%%db%3Axlanguage_block.html.php line 27


this is line 27
<?php if ($this->_foreach['lang_it']['iteration'] % $this->_tpl_vars['block']['number'] == 0): ?>|<?php endif; ?>


this is the whole file xlanguage_block.html
<?php /* Smarty version 2.6.26, created on 2011-09-18 11:25:04
         compiled from db:xlanguage_block.html */ 
?>

<?php if ($this->_tpl_vars['block']['display'] == 'images' || $this->_tpl_vars['block']['display'] == 'text'): ?>
    <?php $_from $this->_tpl_vars['block']['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from'array'); }$this->_foreach['lang_it'] = array('total' => count($_from), 'iteration' => 0);
if (
$this->_foreach['lang_it']['total'] > 0):
    foreach (
$_from as $this->_tpl_vars['lang']):
        
$this->_foreach['lang_it']['iteration']++;
?>
        <a href="<?php echo $this->_tpl_vars['block']['url']; ?>
<?php 
echo $this->_tpl_vars['lang']['name']; ?>
" title="<?php echo $this->_tpl_vars['lang']['desc']; ?>
">
        <?php if ($this->_tpl_vars['block']['display'] == 'images'): ?>
            <img src="<?php echo $this->_tpl_vars['lang']['image']; ?>
" alt="<?php echo $this->_tpl_vars['lang']['desc']; ?>
"
            <?php if ($this->_tpl_vars['block']['selected'] != $this->_tpl_vars['lang']['name']): ?> 
                style="MozOpacity: .8; opacity: .8; filter:Alpha(opacity=80);"
            <?php endif; ?>
            />
        <?php else: ?>
        <?php echo $this->_tpl_vars['lang']['desc']; ?>

        <?php endif; ?>
        </a>
        <?php if ($this->_foreach['lang_it']['iteration'] % $this->_tpl_vars['block']['number'] == 0): ?>|<?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
<?php 
else: ?>
    <select name="selectlang"
            onChange="if(this.options[this.selectedIndex].value.length >0 )    { window.document.location=this.options[this.selectedIndex].value;}"
    >
    <?php $_from $this->_tpl_vars['block']['languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from'array'); }$this->_foreach['lang_it'] = array('total' => count($_from), 'iteration' => 0);
if (
$this->_foreach['lang_it']['total'] > 0):
    foreach (
$_from as $this->_tpl_vars['lang']):
        
$this->_foreach['lang_it']['iteration']++;
?>
        <option value="<?php echo $this->_tpl_vars['block']['url']; ?>
<?php 
echo $this->_tpl_vars['lang']['name']; ?>

            <?php if ($this->_tpl_vars['block']['selected'] == $this->_tpl_vars['lang']['name']): ?>selected<?php endif; ?>
        ><?php echo $this->_tpl_vars['lang']['desc']; ?>
</option>
    <?php endforeach; endif; unset($_from); ?>
    </select>
<?php endif; ?>




How to fix this

Im using
Quote:

xlanguage 3.11
XOOPS Version XOOPS 2.5.2
PHP Version 5.3.6
mySQL Version 5.1.56
Server API cgi-fcgi
OS Linux
safe_mode Off
register_globals Off
magic_quotes_gpc On
allow_url_fopen Off
fsockopen On
post_max_size 8M
max_input_time 60
output_buffering
max_execution_time 30
memory_limit 32M
file_uploads On
upload_max_filesize 5M




102
sabahan
Re: If we were to start a 2.6 Branch what would you like to see.
  • 2011/9/17 0:08

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


new comment system (like in rmcommon) or

add quote button in current comment system



103
sabahan
xoops 2.5: default visible filter for blocks
  • 2011/9/14 22:38

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5



based on this topic

https://xoops.org/modules/newbb/viewtopic.php?topic_id=74122&forum=66&post_id=341089#forumpost341089


i think it should be set to All Types

so user know what blocks is available to be use



104
sabahan
Re: Is XOOPS 2.5.2 going to be released?
  • 2011/9/13 23:56

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


nice..keep up the good work...



105
sabahan
Re: CBB - 4.05 - beta1
  • 2011/9/13 23:54

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


Hi Biglove,

view this
http://imageshack.us/photo/my-images/831/unledbpm.jpg/


xoops operation guide - a good read
http://sourceforge.net/projects/xoops/files/XOOPS%20Documentation_%20Core/XU-003_%20XOOPS%20Operations%20Guide%201.0/XU-003_OperationsGuide.pdf/download



106
sabahan
Re: Question about Login through user.php
  • 2011/9/13 14:50

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


btw i tried the catzwolf solution above..it is not working..i don't know if i did correctly

what i did was...

a. change the lines mentioned

b. then create a custom block show in all pages..make link to root/user.php in the block

c. when to a module page (forum topic) as guest ..

d. click the login link to user.php in the custom block

e. after login in user.php i am redirected to my profile page and not to the forum topic where i was before



107
sabahan
Re: Question about Login through user.php
  • 2011/9/13 14:33

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5




added here
https://sourceforge.net/tracker/?func=detail&aid=3408682&group_id=41586&atid=430843



108
sabahan
Re: A Bit bored?
  • 2011/9/13 14:02

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


is this a browser bug or what ? lol...dizzyy

it still work in my firefox 3 2011



109
sabahan
Re: Question about Login through user.php
  • 2011/9/13 11:37

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


can this be included in the core ?

I noticed this feature is implemented in the sourceforge website .. (ive been reporting a few xoops bugs lately)

1. i want to report xoops bug

http://sourceforge.net/tracker/?func=add&group_id=41586&atid=430840

this is not accessible for guest

2. click the login link on top bar
http://sourceforge.net/account/login.php

3. input username/password

4. success login

5. im redirected to my previous page
http://sourceforge.net/tracker/?func=add&group_id=41586&atid=430840







110
sabahan
Re: templates manager
  • 2011/9/13 1:18

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


more info here about template overriding..implement since xoops 2.014


https://xoops.org/modules/news/article.php?storyid=3367




TopTop
« 1 ... 8 9 10 (11) 12 13 14 ... 27 »



Login

Who's Online

197 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

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

Latest GitHub Commits