Jump to content

DSystem

Members
  • Posts

    358
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by DSystem

  1. I understand!

    But see if you can help me. With this problem, moderators end up not being able to remove credits from members who have gained credits irregularly. What could be resolved with just a warning and taking credits ends up generating a ban. My forum depends a lot on the credits system to work perfectly.

  2. On 1/25/2023 at 8:14 PM, DSystem said:

    Ola! @Adriano Faria

    I found a bug with reactions and credits.

    I configured here that each positive reaction generates 10 credits. If the member who gave the positive reaction removes it the 10 credits are removed as they should.

    But if a moderator removes the positive reaction from another member of the forum the reaction is removed but the credits are not removed.

    Can you help me about this problem?

  3. On 25/01/2023 at 20:14, DSystem said:

    Olá!@ Adriano Faria See More

    Encontrei um bug com reações e créditos.

    Configurei aqui que cada reação positiva gera 10 créditos. Se o membro que deu a reação positiva a remover, os 10 créditos serão removidos como deveriam.

    Mas se um moderador remover a reação positiva de outro membro do fórum, a reação é removida, mas os créditos não são removidos.

     

    On 25/01/2023 at 20:28, Adriano Faria said:

    Vou dar uma olhada no lançamento de fevereiro. Acabei de lançar uma nova versão. 

    Obrigado.

     

    Good morning! Do you have a forecast for this review?

  4. After the ticket was opened, I was attended by these guys: 👇
    @Andy Millne @Jim M @Marc Stridgen @Stuart Silvester @Daniel F

    In the end, he got the following answer:

    Quote

    Thank you for bringing this issue to our attention. I investigated the issue you reported and the issue appears to be a bug in the current version of Invision Community.

    I have submitted a possible solution to the issue described here, and after review by the development team, the fix should be included in an upcoming release of the Invision Community

    I wonder if the bug was resolved in the version released yesterday 4.7.7 ???

  5. @fala @Marc Stridgen

    I had the same problem here! Glad I found this thread and it made the solution easier. 👍

    Some observations:
    - The date was wrong on every platform. Not only from the Pages module
    - I installed the locale pt_BR.UTF-8 and it worked perfectly with the date in DD/MM/YYYY format
    - I believe that the date format in the IPS did not depend on some server configuration. I have Wordpress and Prestashop on the same server and it was not affected by the lack of the pt_BR.UTF-8 locale

    My forum works in English, Spanish and Portuguese. But when I change the language from Portuguese to English the date remains in the DD/MM/YYYY format. Is this behavior expected?

    I believe that the date format would have to follow the language in use.
     

  6. Ola! @Adriano Faria

    I found a bug with reactions and credits.

    I configured here that each positive reaction generates 10 credits. If the member who gave the positive reaction removes it the 10 credits are removed as they should.

    But if a moderator removes the positive reaction from another member of the forum the reaction is removed but the credits are not removed.

  7. Only yesterday I managed to migrate my forum to PHP 8 and I'm having problems with Elasticsearch.
    I'm using IPS 4.6, Elasticsearch 7.17 and PHP 8.1.14

    I get the following error when I try to delete a post or topic. (This is happening in an unmodified theme with all 3rd party apps/plugins disabled.)
    The problem only stops happening when I change the search engine to MySQL

    TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given (0)
    #0 //public_html/applications/forums/sources/Forum/Forum.php(1572): in_array()
    #1 //public_html/applications/forums/sources/Topic/Topic.php(894): IPS\forums\_Forum->permissionsThatCanAccessAllTopics()
    #2 //public_html/system/Content/Comment.php(738): IPS\forums\_Topic->searchIndexPermissions()
    #3 //public_html/system/Content/Search/Index.php(412): IPS\Content\_Comment->searchIndexPermissions()
    #4 //public_html/system/Content/Search/Elastic/Index.php(146): IPS\Content\Search\_Index->indexData()
    #5 //public_html/system/Content/Search/Elastic/Index.php(942): IPS\Content\Search\Elastic\_Index->indexData()
    #6 //public_html/system/Content/Search/Elastic/Index.php(458): IPS\Content\Search\Elastic\_Index->resetLastComment()
    #7 //public_html/applications/core/sources/DeletionLog/DeletionLog.php(215): IPS\Content\Search\Elastic\_Index->removeFromSearchIndex()
    #8 //public_html/system/Content/Content.php(1149): IPS\core\_DeletionLog->save()
    #9 //public_html/system/Content/Content.php(1094): IPS\_Content->logDelete()
    #10 //public_html/system/Content/Controller.php(3756): IPS\_Content->modAction()
    #11 //public_html/system/Content/Controller.php(2290): IPS\Content\_Controller->_multimod()
    #12 //public_html/applications/forums/modules/front/forums/topic.php(1240): IPS\Content\_Controller->__call()
    #13 //public_html/system/Dispatcher/Controller.php(107): IPS\forums\modules\front\forums\_topic->__call()
    #14 //public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
    #15 //public_html/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute()
    #16 //public_html/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute()
    #17 //public_html/index.php(13): IPS\_Dispatcher->run()
    #18 {main}

    During index rebuild it generated more than 450 errors like this in the logs:

    TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/ebrcom/web/eletronicabr.com/public_html/applications/forums/sources/Forum/Forum.php:1572 Stack trace: 
    #0 //public_html/applications/forums/sources/Forum/Forum.php(1572): in_array() 
    #1 //public_html/applications/forums/sources/Topic/Topic.php(894): IPS\forums\_Forum->permissionsThatCanAccessAllTopics() 
    #2 //public_html/system/Content/Comment.php(738): IPS\forums\_Topic->searchIndexPermissions() 
    #3 //public_html/system/Content/Search/Index.php(412): IPS\Content\_Comment->searchIndexPermissions() 
    #4 //public_html/system/Content/Search/Elastic/Index.php(146): IPS\Content\Search\_Index->indexData() 
    #5 //public_html/system/Content/Search/Elastic/MassIndexer.php(38): IPS\Content\Search\Elastic\_Index->indexData() 
    #6 //public_html/applications/core/extensions/core/Queue/RebuildSearchIndex.php(169): IPS\Content\Search\Elastic\_MassIndexer->index() 
    #7 //public_html/system/Task/Task.php(47): IPS\core\extensions\core\Queue\_RebuildSearchIndex->run() 
    #8 //public_html/applications/core/tasks/queue.php(43): IPS\_Task::runQueue() 
    #9 //public_html/system/Task/Task.php(375): IPS\core\tasks\_queue->IPS\core\tasks\{closure}() 
    #10 //public_html/applications/core/tasks/queue.php(55): IPS\_Task->runUntilTimeout() 
    #11 //public_html/system/Task/Task.php(274): IPS\core\tasks\_queue->execute() 
    #12 //public_html/system/Task/Task.php(237): IPS\_Task->run() 
    #13 //public_html/applications/core/interface/task/task.php(72): IPS\_Task->runAndLog() 
    #14 {main}

     

  8. @Adriano Faria

    Hi! After I updated to ips 4.7 I have thousands of errors in the logs:

    The URL of page the error occurred on was https://eletronicabr.com/terms/?do=topPosters&time=month&limit=10&type=downloads_files/**/ORDER/**/BY/**/1--/**/dSoP&orientation=vertical

    SELECT  AS member, count() AS posts FROM `` WHERE  = 1 AND >1658249986 GROUP BY `member` ORDER BY posts DESC LIMIT 10
    IPS\Db\Exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS member, count() AS posts FROM `` WHERE  = 1 AND >? GROUP BY `member` ORDER...' at line 1 (1064)
    #0 /home/febr/public_html/system/Db/Select.php(388): IPS\_Db->preparedQuery()
    #1 /home/febr/public_html/system/Db/Select.php(286): IPS\Db\_Select->runQuery()
    #2 /home/febr/public_html/init.php(927) : eval()'d code(48): IPS\Db\_Select->setKeyField()
    #3 /home/febr/public_html/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\hook2665->topPosters()
    #4 /home/febr/public_html/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute()
    #5 /home/febr/public_html/index.php(13): IPS\_Dispatcher->run()
    #6 {main}

    BACKTRACE

    #0 /home/febr/public_html/init.php(1029): IPS\_Log::log()
    #1 [internal function]: IPS\IPS::exceptionHandler()
    #2 {main}

     

  9. @HDiddy

    Here is the guide I used to install opensearch 2.0 on centos 7

    Install OpenSearch 2.0
    java
    sudo yum install java-11-openjdk-devel
    java -version
     

    OpenSearch -> https://opensearch.org/docs/2.0/opensearch/install/rpm/
    sudo curl -SL https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/opensearch-2.x.repo -o /etc/yum.repos.d/2.x.repo
    sudo yum repolist
    sudo yum clean all
    sudo yum list | grep opensearch
    sudo yum install opensearch
    sudo systemctl start opensearch.service


    First Test
    systemctl status opensearch.service
    curl -XGET https://localhost:9200 -u 'admin:admin' --insecure

    Added when starting linux
    sudo systemctl enable --now opensearch

    Disabling security -> https://opensearch.org/docs/2.0/security-plugin/configuration/disable/

    echo -e "\n# To disable security\nplugins.security.disabled: true" >> /etc/opensearch/opensearch.yml

    systemctl restart opensearch.service

    Second test
    curl -XGET http://localhost:9200
    {
      "name" : "srv.xxxxxxxx.com",
      "cluster_name" : "opensearch",
      "cluster_uuid" : "gNoLRKpERSOmQS9raXqUig",
      "version" : {
        "distribution" : "opensearch",
        "number" : "2.0.0",
        "build_type" : "rpm",
        "build_hash" : "bae3b4e4178c20ac24fece8e82099abe3b2630d0",
        "build_date" : "2022-05-19T00:25:28.444553037Z",
        "build_snapshot" : false,
        "lucene_version" : "9.1.0",
        "minimum_wire_compatibility_version" : "7.10.0",
        "minimum_index_compatibility_version" : "7.0.0"
      },
      "tagline" : "The OpenSearch Project: https://opensearch.org/"
    }


    optimization -> http://wiki.centos-webpanel.com/how-to-install-elasticsearch
    sed -i -e 's|-Xms1g|-Xms2g|g' /etc/opensearch/jvm.options
    sed -i -e 's|-Xmx1g|-Xmx2g|g' /etc/opensearch/jvm.options

     

  10. In cancel.phtml and reactive.phtml models, translation variables are missing

    <p class='ipsType_normal'>
            <a href='{$reactUrl}' class='ipsButton ipsButton_light ipsButton_verySmall'>{lang="deactivation_reactivate_button"}</a>
    		<a href='{url="app=core&module=system&controller=login&do=logout" seoTemplate="logout" csrf="true"}' class='ipsButton ipsButton_light ipsButton_verySmall'>Sign Out</a>
        </p>

     

×
×
  • Create New...