Giter Site home page Giter Site logo

rmcgirr83 / nationalflags Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 5.0 2.88 MB

phpBB extension that allows users to be able to choose a national flag and have a top (those with the most users selecting the flag) number of flags display on the index page of a phpBB forum. Requires at least phpBB version 3.3.

License: GNU General Public License v2.0

PHP 82.29% HTML 16.80% CSS 0.44% JavaScript 0.46%

nationalflags's People

Contributors

dragosvr92 avatar mannixmd avatar rmcgirr83 avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nationalflags's Issues

Error Log (PHP Fatal error)

I have version 1.3.1 of this extension installed on my site. (The one that is offered at phpbb.com). I haven't tried testing your latest commit changes or etc.

Just caught this error in my Error Logs for this extension:

[20-Sep-2016 16:17:03 America/Toronto] PHP Fatal error: Uncaught exception 'Symfony\Component\Routing\Exception\InvalidParameterException' with message 'Parameter "flag_id" for route "rmcgirr83_nationalflags_getflags" must match "[^/]++" ("" given) to generate a corresponding URL.' in phpbb/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php:163 Stack trace: #0 phpbb/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php(136): Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'rmcgirr83_natio...', false, Array) #1 phpbb/phpbb/controller/helper.php(188): Symfony\Component\Routing\Generator\UrlGenerator->generate('rmcgirr83_natio...', Array, false) #2 phpbb/ext/rmcgirr83/nationalflags/event/listener.php(366): phpbb\controller\helper->route('rmcgirr83_natio...', Array) #3 [internal function]: rmcgirr83\nationalflags\event\listener->viewtopic_modify_pos in phpbb/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php on line 163

Invalid services.yml file

The Extensions .yml Files Syntax Check extension identifies services.yml file as invalid.... Yet i have the latest National Flags extension.
I tried replacing the single quotes to double quotes but its still claiming the file is invalid.

Here is my file:


imports:
    - { resource: tables.yml }
    - { resource: flag_constants.yml }

services:
    rmcgirr83.nationalflags.admin.controller:
        class: rmcgirr83\nationalflags\controller\admin_controller
        arguments:
            - "@cache"
            - "@config"
            - "@dbal.conn"
            - "@pagination"
            - "@controller.helper"
            - "@request"
            - "@template"
            - "@user"
            - "@log"
            - "@ext.manager"
            - "@path_helper"
            - "%core.root_path%"
            - "%core.php_ext%"
            - "%flag_constants%"
            - "%rmcgirr83.nationalflags.table.nationalflags%"
            - "@rmcgirr83.nationalflags.nationalflags"
            - "@files.factory"
            - "@filesystem"
            - "@language"

    rmcgirr83.nationalflags.main.controller:
        class: rmcgirr83\nationalflags\controller\main_controller
        arguments:
            - "@auth"
            - "@config"
            - "@dbal.conn"
            - "@pagination"
            - "@controller.helper"
            - "@language"
            - "@request"
            - "@ext.manager"
            - "@path_helper"
            - "@template"
            - "@user"
            - "%core.root_path%"
            - "%core.php_ext%"
            - "%rmcgirr83.nationalflags.table.nationalflags%"
            - "@rmcgirr83.nationalflags.nationalflags"
            - "@files.factory"

    rmcgirr83.nationalflags.listener:
        class: rmcgirr83\nationalflags\event\listener
        arguments:
            - "@auth"
            - "@config"
            - "@controller.helper"
            - "@dbal.conn"
            - "@language"
            - "@request"
            - "@template"
            - "@user"
            - "@ext.manager"
            - "%core.root_path%"
            - "%core.php_ext%"
            - "@rmcgirr83.nationalflags.nationalflags"
        tags:
            - { name: event.listener }

    rmcgirr83.nationalflags.nationalflags:
        class: rmcgirr83\nationalflags\core\nationalflags
        arguments:
            - "@config"
            - "@controller.helper"
            - "@cache"
            - "@dbal.conn"
            - "@language"
            - "@template"
            - "@user"
            - "%rmcgirr83.nationalflags.table.nationalflags%"
            - "@ext.manager"
            - "@path_helper"
            - %flag_constants%
            - "@?phpbb.collapsiblecategories.operator"

Warnings in ACP

Hello,

Warnings in the ACP:
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/controller/admin_controller.php on line 567: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/controller/admin_controller.php on line 571: array_multisort(): Argument #1 is expected to be an array or a sort flag
[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/nationalflags/controller/admin_controller.php on line 573: implode(): Invalid arguments passed
Pierre Duhem

problem with 3.2

hi i have this message on 3.2

Fatal error: Can't use method return value in write context in /home2/costanzo/public_html/ext/rmcgirr83/nationalflags/controller/admin_controller.php on line 587

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.