Giter Site home page Giter Site logo

Comments (8)

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

Thats wierd. I have no idea right now.
The only thing suspicious is that magic_quotes_gpc is set to true.
magic_quotes are deprecated since PHP 5.4 and I think you should not have this option when using PHP > 5.4 (e.g 7).

Are you sure you run PHP 7 on your live server?

from kirby-sortable.

de4123 avatar de4123 commented on May 28, 2024

Yes, I am running PHP 7 on my live server. I disabled "magic_quotes_gpc" but the error is still there. Its pitty because your plugin is really great. Maybe anybody else has any idea?

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

Can you confirm that your mbstring extension is working as expected?
What version of mbstring is currently installed?

from kirby-sortable.

de4123 avatar de4123 commented on May 28, 2024

Hello Lukas,

thanks for this hint! I guess the extension was not working properly, because the value of "mbstring.func_overload" was "7". I tested now the extension "mbstring.func_overload" with all possible adjustments for the value 0-7:

value of
mbstring.func_overload


0 - Plugin "sortable" is working
1 - Plugin "sortable" is working
2 - Plugin "sortable" is not working
3 - Plugin "sortable" is not working
4 - Plugin "sortable" is working
5 - Plugin "sortable" is working
6 - Plugin "sortable" is not working
7 - Plugin "sortable" is not working

Now I have choosen the value "5" and the plugin works fine! I guess it depends on the needed function which has to be overload in your plugin?

I found this:
https://secure.php.net/mbstring.overload

I attach you also my server-adjustments.
Maybe you can fix the problem or give an advise in the installation-guide?

Thanks a lot!
Doreen

bildschirmfoto 2018-06-01 um 11 14 22

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

I would advise to stick with the default values for the mbstring configuration. It can lead to a bunch of unexpected behaviour all over the place.
So setting mbstring.func_overload to 0 would be the wise thing to to.

But I can't tell if anything running on your server requires mbstring.func_overload = 7 to work properly. If this is a "fresh" server than this is in my opinion a strange base configuration.

To finish this one off.
The configuration / problem is not limited to my plugin. This is nothing I can prevent in the first place beacause I can't or should change the server config here. I think I just got unlucky because the plugin throwed a somewhat usefull error 😉

I will consider adding something to the docs though.

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

@de4123 out of curiosity.
Do you use the plugin together with the modules-plugin?
If so do use a different prefix than module.

If you use it witout the modules-plguin what is the value set for prefix in your blueprint if any?

from kirby-sortable.

de4123 avatar de4123 commented on May 28, 2024

Yes, I use the plugin with "modules-plugin" together. For prefix I have set "null" but for "parent" I have set "modules".

This is my blueprint for the full-width-layout:


title: Layout volle Seitenbreite

pages:
template:
- fullwidth
- sidebarleft
- sidebarright
- contact

build:
- title: Content-Elemente
uid: modules
template: modules

fields:
title:
label: Titel
type: text

headertitle:
label: Headertitel
type: text

subtitle:
label: Untertitel
type: text

sortable:
label: Content-Elemente
type: sortable

sortable: true

layout:  base
variant: null

limit: false

parent: modules
prefix: null

options:
  limit: false

The parent-folder is named with "modules" so your plugin is searching for content-elements in this folder. I attach you the folder-structure of my home-site. On my home-site I use the blueprint above.

Folder "1-home" with subfolder "modules" for the modules:


bildschirmfoto 2018-06-01 um 12 38 07


I hope I use your plugin in a correct way?

from kirby-sortable.

lukaskleinschmidt avatar lukaskleinschmidt commented on May 28, 2024

Looks all fine. Just trying to understand the source of the error.

from kirby-sortable.

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.