catalyst / moodle-block_carousel Goto Github PK
View Code? Open in Web Editor NEWA simple, responsive and touch friendly moodle carousel block
License: GNU General Public License v3.0
A simple, responsive and touch friendly moodle carousel block
License: GNU General Public License v3.0
The slide references in the restored activity contain references to the old block id, not the restored block id.
Add cohort filtering support to the plugin.
This happens when the user adds a block but never configures it.
Which causes a similar error to this to happen.
PHP Warning: Attempt to read property "order" on bool in /var/www/site/blocks/carousel/backup/moodle2/restore_carousel_stepslib.php on line 90
PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/site/blocks/carousel/backup/moodle2/restore_carousel_stepslib.php on line 90
PHP Warning: Undefined array key "" in /var/www/site/blocks/carousel/backup/moodle2/restore_carousel_stepslib.php on line 93
Currently the number of interactions is reset to zero when editing a slide.
moodle-block_carousel/add_slide.php
Line 140 in 4bbed5d
The default database value is also zero. If the line above was removed, the interactions would be saved when editing a slide.
moodle-block_carousel/db/install.xml
Line 15 in 4bbed5d
When adding a new slide, it would be preferred that as it is new content, the slide is the first to display.
Current form does not check for existing number of slides:
https://github.com/catalyst/moodle-block_carousel/blob/master/edit_form.php#L73
If carousel has more than 3 slides, those added after slide 3 will not be displayed. (user need to click on "add another slide" button to show next slide).
Exception - mysqli::real_escape_string(): Argument #1 ($string) must be of type string, array given
More information about this error
It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix if you want to retry the installation.
Debug info:
Error code: generalexceptionmessage
Stack trace:
line 1145 of /lib/dml/mysqli_native_moodle_database.php: TypeError thrown
line 1145 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli->real_escape_string()
line 1357 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->emulate_bound_params()
line 1408 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 1318 of /lib/upgradelib.php: call to mysqli_native_moodle_database->insert_record()
line 648 of /lib/upgradelib.php: call to external_update_descriptions()
line 1108 of /lib/upgradelib.php: call to upgrade_component_updated()
line 684 of /lib/upgradelib.php: call to upgrade_plugins_blocks()
line 1967 of /lib/upgradelib.php: call to upgrade_plugins()
line 726 of /admin/index.php: call to upgrade_noncore()
Uploading an SVG causes errors to appear as below. We've tried updating web_image to a fixed list of supported types, but this didn't work in Totara 16 and broke image uploads.
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
147
Notice
: Undefined property: stdClass::$widthres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
147
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
172
Notice
: Undefined property: stdClass::$widthres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Warning
: Division by zero in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
147
Notice
: Undefined property: stdClass::$widthres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
147
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
172
Notice
: Undefined property: stdClass::$widthres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Warning
: Division by zero in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
147
Notice
: Undefined property: stdClass::$widthres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
147
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
172
Notice
: Undefined property: stdClass::$widthres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Notice
: Undefined property: stdClass::$heightres in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Warning
: Division by zero in
/var/www/site/server/blocks/carousel/block_carousel.php
on line
175
Implement some basic metadata and display this either in the slide table, or when editing a slide.
File missing from disk should be handled a little more gracefully
If you submit a carousel add slide form with the No Title checkbox ticked, this error occurs.
Notice: Undefined property: stdClass::$title in
/var/www/.../blocks/carousel/add_slide.php on line 136
The same happens with $text.
Even if the plugin doesn't have any tests, it's still nice to have CI configured.
I'm having issues on a dev environment with the paddingbottom
variable being undefined at this line:
https://github.com/catalyst/moodle-block_carousel/blob/master/block_carousel.php#L163
This may just be an issue when using a database snapshot when the underlying files haven't been copied over. However, it could probably be resolved by giving the variable a default value before the foreach ($files as $file)
loop.
Create ability to retain all slide data another mform section. Feature to move slides to the archive and back.
The docs could be updated to use a format similar to that for the rest of our plugins, by having a version table listing out supported versions and relevant branches that needs to be defined. Currently it's just plaintext which might be missed if skimming the docs (in search for the table)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.