Comments (14)
Hi!
Do you mean, the choose an image pulldown for choosing a key image or background image?
Those pulldowns determine what is an image in a rather strict way, the file extension of the uploaded files need to be .jpeg, .jpg, .gif, or .png. So, if your images don't have one of these extensions, or don't have any extension (which can happen on a mac), then they won't show up in the list.
Curious if this helps?
from scalar.
My book is called "test" and this is my media folder:
total 80K
drwxrwxr-x 2 apache www 4.0K May 10 15:37 .
drwxrwxr-x 3 apache www 4.0K May 10 15:15 ..
-rwxrwxr-x 1 apache apache 22K May 10 15:37 book_thumbnail.png
-rwxrwxr-x 1 apache apache 22K May 10 15:36 scholarworks.png
-rwxrwxr-x 1 apache apache 22K May 10 15:36 scholarworks_thumb.png
[root@ip-172-31-21-86 html]#
So not sure why they aren't loading.
from scalar.
FYI - When I "Import Local Media File" - the upload works, the file shows up on the filesystem, but the UI doesn't indicate any success or failure, it just stays on the import page. So maybe something related to this is the problem?
from scalar.
Ah, so when you try to upload a file, the upload page doesn't refresh to a new page that shows the image, once the upload is complete?
When you go to Dashboard > Media tab, do you see anything listed there?
What Scalar install are you using? One of ours (e.g., scalar.usc.edu) or a custom install?
from scalar.
Right.
This is a fresh install from git master.
from scalar.
When you go to Dashboard > Media tab, do you see anything listed there?
from scalar.
Nope.
from scalar.
Are you familiar with the Web Inspector in your browser? If so, could you open it up and click on the Console tab? This will reveal the ajax request to the server (that comes back after the file is physically uploaded), in which case can you check to see what is returned and if there's any javascript or php error in there?
If the above is out of your league I can try to cook up a lighter weight option.
Either way there's probably a PHP error being thrown for some reason by your server, probably to do with permissions or something.
from scalar.
The validation javascript is certainly failing. Getting a null result. The apache user is the owner of the file system structure, so not sure why a permissions issue would be a problem unless it's doing something outside of the app filesystem structure.
from scalar.
Are you able to open up the request itself (might be under the Net tab)? If so, under the "Response", you should see something, maybe some PHP errors? Or, is the Response itself just blank?
If the response itself is blank, you can open up codeigniter.php in the root folder and switch "production" to "development" and try again: this should turn on errors.
from scalar.
Ah, thanks... getting somewhere. I have this error:
PHP Fatal error: Uncaught Error: Call to undefined function imagecreatefrompng() in /var/www/html/system/application/libraries/File_Upload.php:139\nStack trace:\n#0 /var/www/html/system/application/libraries/File_Upload.php(43): File_Upload->resize('/var/www/html/t...', 200)\n#1 /var/www/html/system/application/controllers/book.php(541): File_Upload->createMediaThumb('test/', 'media/scholarwo...', 509)\n#2 /var/www/html/system/application/controllers/book.php(167): Book->upload()\n#3 /var/www/html/system/core/CodeIgniter.php(326): Book->_remap('test', Array)\n#4 /var/www/html/codeigniter.php(203): require_once('/var/www/html/s...')\n#5 {main}\n thrown in /var/www/html/system/application/libraries/File_Upload.php on line 139, referer: http://scalar.calstate.edu/test/upload
from scalar.
Ah! That's it!
Do you have access to PHP on your server? The GD Library needs to be turned on http://php.net/manual/en/book.image.php
I think thumbnail creation is the only operation that uses GD (though there's a few places that thumbnails are made).. if you can't get GD turned on I could put in the pipeline some hooks for Scalar to test whether those functions exist before trying to use them, which would remove those errors.
from scalar.
FIXED!
Thanks! Was that in the docs? I missed it. That should probably be highlighted.
Thanks again!
from scalar.
Great idea, done! 01e291d
Thanks for sticking with it!
from scalar.
Related Issues (20)
- PHP 8.1 throws errors in development mode HOT 3
- Lens as Advanced Search HOT 1
- Google Maps are no longer loading HOT 1
- Deprecated package yepnope v1.5.3 HOT 1
- CE dates in in timeline don't plot correctly HOT 2
- Changin url on new book throws error
- Resizing window duplicates inline notes HOT 2
- error display/logging? HOT 3
- Feature request: Creative Commons licence select/display HOT 1
- Instance crashes after 5 relationship links HOT 5
- A PHP Error was encountered HOT 3
- Error message returns "object Object" to user in alert HOT 1
- Error message returns JSON parse error in alert to user HOT 1
- Feature Request: Place uploads in separate directory by default
- Error when importing book to custom install HOT 1
- Bulk update page metadata HOT 2
- Feature Suggestion: Anonymous Interactive Lens HOT 1
- Feature Suggestion: List lens should include the queried metadata column HOT 4
- Lenses description not saved HOT 1
- Content search queries with apostrophe/single quote return no results HOT 6
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 scalar.