Marketing Block wont display images with spaces in filenames

Issue #588 wontfix
GregNockolds created an issue

The marketing block 1 will accept images with spaces in their filename, and display them correctly within the admin page (/admin/settings.php?section=theme_adaptable_frontpage_blocks) but will not display on the home page.

Inspecting the image shows this code: <img style="display: block; margin-left: auto; margin-right: auto;" src="https://myMoodleSitedotcom/brokenfile.php#/3135/user/draft/450667818/Sos%20Gathering%20Resources.png" alt="" width="512" height="138">

Removing spaces from the file name displays the image correctly with this code: <img style="display: block; margin-left: auto; margin-right: auto;" src="https://cpfs2.test.pukunui.net/pluginfile.php/1/theme_adaptable/adaptablemarketingimages/0/Sos_Gathering_Resources.png" alt="" width="512" height="138" id="yui_3_17_2_1_1483338661642_34">

on Moodle 3.2+ (Build: 20161222) with Adaptable 1.3 2016121300

Comments (4)

  1. Info 3bits

    A file name with spaces is not valid by default in *nix systems. Rename the file and add underscores instead spaces.

  2. GregNockolds reporter

    Thank you, I had removed spaces as I said in first post, this is not a consistent application of such a non-support of spaces in filenames and is the first time I've encountered this in many years of Moodle , and not consistently applied in adaptable theme in that the admin page DOES support spaces, just not the home page. AND the secondary info block fully supports spaces. There's something awry with the first info block, also strips out hyperlinks as raised in other issue by me.

  3. Charles Ross

    The easy tool to create and schedule your Twitter posts is an local marketing software that allows you to add multiple social networking accounts, such as Facebook and LinkedIn. It also allows you to schedule as many as eight tweets at a time. It also allows you to view analytics and potential reach for your tweets so that you can choose when to post them. In addition, you can also use the app to schedule your Facebook posts, Instagram posts, and Twitter replies.

  4. Log in to comment