Comments (8)
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.
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.
Can you confirm that your mbstring
extension is working as expected?
What version of mbstring
is currently installed?
from kirby-sortable.
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
from kirby-sortable.
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.
@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.
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:
I hope I use your plugin in a correct way?
from kirby-sortable.
Looks all fine. Just trying to understand the source of the error.
from kirby-sortable.
Related Issues (20)
- Inline editing of modules HOT 1
- Make readme more clear
- Multilang titles in module overview HOT 3
- Drag axis HOT 3
- Easier way of disabling default actions HOT 6
- Disable field when readonly is set to true in the blueprint HOT 1
- Error 500 on update if status:false in child's blueprint HOT 2
- Long module titles break the layout HOT 1
- Copy Page / recursively endless spinn HOT 3
- Skipping modal (hacky solution) HOT 3
- Error on pasting modules using the Modules field HOT 1
- Add page title for new entries HOT 1
- Role based actions in layouts HOT 2
- Drag and Drop not working in IE 11 HOT 2
- Disable sorting based on roles HOT 5
- Hide page in module section HOT 8
- in the add modal are modules and page templates shown mixed HOT 1
- Rename modules & update blueprint in filestructure HOT 2
- PHP 7.4.x and Kirby 2.5.13 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-sortable.