Euclid

+Clients
  • Content count

    241
  • Joined

  • Last visited


1 Follower



About Euclid

  • Rank
    Advanced Member

Euclid's Activity

  1. Euclid added a comment: PHP Fatal error: Redefinition of parameter $forum_data   

    After a little bit of digging it turns out the problem originates from the skin templates (e.g. forums_root_templates.xml) in the code like this:
    <foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
    You will note the $forum_id => $forum_data which will be added as the extra arguments of the generated php function. The php code is generated by _processForeachLogic in File: classTemplateEngine.php. More specifically in this part you can see that the "as" statement is split and the 2 variables ($one, $two) are appended to $_normal_func_data, which is the function signature.
    $_normal_func_data = $normal_func_data; if ( strstr( strtolower($statement), 'as' ) ) { # Get the last part of the argument list( $_trash, $keep ) = explode( ' as', $statement ); $keep = trim($keep); if ( strstr( $keep, '=>' ) ) { list( $one, $two ) = explode( '=>', $keep ); $one = trim( $one ); $two = trim( $two ); $_normal_func_data .= ",{$one}='',{$two}=''"; } else { $_normal_func_data .= ",{$keep}=''"; } } $block = $this->_processForeachLogic($block, trim($_normal_func_data, ','), $func_name); So the fix is to either rename the variables in the xml templates or the code above should prefix the variables with __ and rename the variables in the block.
  2. Euclid added a comment: PHP Fatal error: Redefinition of parameter $forum_data   

    I have no idea why this bug report has been closed. Take a look at the generated php template code:
     
    function __f__d6798b8e4d2061ab51713dded54e47cb($forum_data, $announce_data, $topic_data, $other_data, $multi_mod_data, $sub_forum_data, $footer_filter, $active_user_data, $mod_data, $inforum=1,$_data='',$forum_id='',$forum_data='') { $_ips___x_retval = ''; $__iteratorCount = 0; foreach( $forum_data['subforums'] as $__id => $__data ) { .. } }  If you look at the function signature you will notice that $forum_date is there twice: the first argument and the last argument.
     
  3. Euclid added a comment: PHP Fatal error: Function name must be a string   

    The Windows binaries for version 7 are available here:
    http://windows.php.net/snapshots/
     
    Paragraph PHP master
  4. Euclid added a record in IP.Board   

    PHP Fatal error: Function name must be a string
    PHP Fatal error:  Function name must be a string in <redacted>\admin\sources\classes\output\publicOutput.php(1761) : eval()'d code on line 1463
     
    This is another bug that is only visible in PHP 7. PHP 5 ignores this error as well. This happens with the default skin/template.
    • 0 replies
    • 0 views
  5. Euclid added a record in IP.Board   

    PHP Fatal error: Redefinition of parameter $forum_data
    This error is thrown with PHP 7:
    PHP Fatal error:  Redefinition of parameter $forum_data in <redacted>\admin\sources\classes\output\publicOutput.php(1761) : eval()'d code on line 417

     
    The reason this does not happen with PHP 5 is because PHP 5 does not complain if it parameters are redefined. It should still be fixed as it is a bug in the template.
     
    I'm using the default template/skin without any changes.
    • 0 replies
    • 0 views
  6. Euclid added a comment on a blog entry: Get Ready For IPS 4.0!   

    utf8_unicode_ci vs utf8_general_ci
     
    Is the accuracy of utf8_unicode_ci really needed? Apparently the author of the stackoverflow question (see below) now actually recommends to use unicode as the performance implications are no longer relevant.
      Reference: http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci
  7. Euclid added a record in IP.Board   

    Unable to enter life time license key
    IP.Board will not accept the life time license and permanently shows an error in the admin:

    License Key Missing
    You have not entered your license key, click here to enter it now and receive access to the services provided by your license!

    The same thing happens during the upgrade.
    • 0 replies
    • 0 views
  8. Euclid added a comment: robots.txt   

    This does not look it has been fixed in the latest release (3.3.2).
  9. Euclid added a comment: utf-8 broken since upgrade   

    I have already offered you to debug it for you but you didn't take this opportunity. You have my email and can contact me at any time.
  10. Euclid added a comment: utf-8 broken since upgrade   

    If there was no bug in IP.Board I probably would not see the problem that appeared after I have upgraded from 3.2 to 3.3.

    The worst part of is that you keep on trying to convince your clients that if it works for your particular setup then there is no bug.
  11. Euclid added a record in IP.Board   

    Html part of multi part email is empty
    The html part (text/html) of multi part emails (activation email, lost password, probably others) is empty or at least nothing is displayed. The content in the text/plain part is correct.
    Mail settings in IP.Board: HTML email enabled
    • 0 replies
    • 0 views
  12. Euclid added a comment: utf-8 broken since upgrade   

    I do not have access to the topic. Can you please send me a link that I can access?


    Without having the details something that is broken by an upgrade looks like a bug to me.
  13. Euclid added a comment: utf-8 broken since upgrade   

    This is still broken in the latest 3.3.2 release.
  14. Euclid added a record in IP.Board   

    Illegal string offset in publicOutput.php
    Various warnings:
    PHP Warning: Illegal string offset 'smilies' in forums\admin\sources\classes\output\publicOutput.php(1735) : eval()'d code on line 168
    PHP Warning: Illegal string offset 'bypassCKEditor' in forums\admin\sources\classes\output\publicOutput.php(1735) : eval()'d code on line 172
    PHP Warning: Illegal string offset 'noSmilies' in forums\admin\sources\classes\output\publicOutput.php(1735) : eval()'d code on line 192
    • 0 replies
    • 0 views
  15. Euclid added a comment: PHP Warning: Illegal string offset 'online_extra'   

    Great. Thanks :-)