Giter Club home page Giter Club logo

Comments (15)

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024 1

.

from phpmyfaq.

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024 1

Hello,

It's not changed in the databse, but in the fil /src/phpMyFAQ/Revision.php ( line 50 )

from phpmyfaq.

thorsten avatar thorsten commented on September 24, 2024

Which version do you use?

from phpmyfaq.

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024

3.2.6

from phpmyfaq.

thorsten avatar thorsten commented on September 24, 2024

Do you have any special permission on that category?

from phpmyfaq.

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024

I perform the change as administrator

from phpmyfaq.

thorsten avatar thorsten commented on September 24, 2024

I'll check that!

from phpmyfaq.

thorsten avatar thorsten commented on September 24, 2024

Why are the user rights not checked?

from phpmyfaq.

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024

Also when i try to select the user rights in the catagory I get the following error:

phpMyFAQ Fatal error
Uncaught exception: 'TypeError'

Message: 'phpMyFAQ\Category\CategoryPermission::add(): Argument #3 ($ids) must be of type array, null given, called in /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ_20240330/admin/category.main.php on line 244'

Stack trace:

#0 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ_20240330/admin/category.main.php(244): phpMyFAQ\Category\CategoryPermission->add()
#1 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ_20240330/admin/index.php(392): require('...')
#2 {main}
Thrown in '/mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ_20240330/src/phpMyFAQ/Category/CategoryPermission.php' on line 49

from phpmyfaq.

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024

Editing a question, result in the foillowing error:

phpMyFAQ Fatal error
Uncaught exception: 'mysqli_sql_exception'

Message: 'Unknown column 'laqng' in 'where clause''

Stack trace:

#0 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/src/phpMyFAQ/Database/Mysqli.php(308): mysqli->query()
#1 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/src/phpMyFAQ/Revision.php(58): phpMyFAQ\Database\Mysqli->query()
#2 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/admin/record.save.php(119): phpMyFAQ\Revision->create()
#3 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/admin/index.php(358): require('...')
#4 {main}
Thrown in '/mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/src/phpMyFAQ/Database/Mysqli.php' on line 308

from phpmyfaq.

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024

I changed the parameter laqng into lang but it dows not resolve the issue

from phpmyfaq.

thorsten avatar thorsten commented on September 24, 2024

Editing a question, result in the foillowing error:

phpMyFAQ Fatal error Uncaught exception: 'mysqli_sql_exception'

Message: 'Unknown column 'laqng' in 'where clause''

Stack trace:

#0 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/src/phpMyFAQ/Database/Mysqli.php(308): mysqli->query() #1 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/src/phpMyFAQ/Revision.php(58): phpMyFAQ\Database\Mysqli->query() #2 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/admin/record.save.php(119): phpMyFAQ\Revision->create() #3 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/admin/index.php(358): require('...') #4 {main} Thrown in '/mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ/src/phpMyFAQ/Database/Mysqli.php' on line 308

How could it be that a database table column name was changed?

from phpmyfaq.

thorsten avatar thorsten commented on September 24, 2024

I tested your case for an hour and I can't reproduce it.

Dear all,

When I try to edit (afterwards) the category with the function Show on start page, what I perform with the following procedure

• Content • Categories • Selection of the Categorie • Edit the catgory • Show on startpage • Submit

phpMyFAQ Fatal error Uncaught exception: 'TypeError' Message: 'phpMyFAQ\Category\CategoryPermission::add(): Argument #3 ($ids) must be of type array, null given, called in /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ_20240330/admin/category.main.php on line 244' Stack trace: #0 /mnt/web109/e2/67/54355767/htdocs/MIJN_FAQ_20240330/admin/category.main.php(244): phpMyFAQ\Category\CategoryPermission->add() #1

I checked this one. The third argument can't be null, it's always an array.

from phpmyfaq.

ton-helmerhorst avatar ton-helmerhorst commented on September 24, 2024

The problem is resolved by modifing the file /src/phpMyFAQ/Revision.php

Thanks for your help!!!

from phpmyfaq.

thorsten avatar thorsten commented on September 24, 2024

Found it as well! Thanks!

from phpmyfaq.

Related Issues (20)

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.