Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hi, i am using flip PDF software to convert pdf to flip books, however when i upload the file in the module it shows a flipping book is created. i have a content type where in the filed in flipping book reference, when i try to create a content there it gives the following error..
"/sites/default/files/flipping_book/chapter_1_center_of_gravity_1/index.html" could not be found.
screen shot attached, please help on this
Comment | File | Size | Author |
---|---|---|---|
#12 | flipping-book-page-not-found-2477041-12.patch | 2.46 KB | Rob230 |
#9 | patch.txt | 951 bytes | LChun |
flip book.png | 206.18 KB | tuhin123 |
Comments
Comment #1
tuhin123 CreditAttribution: tuhin123 commentedto add , i have this file in my server still it shows this error
Comment #2
g0blin79 CreditAttribution: g0blin79 commentedComment #3
Admincamr CreditAttribution: Admincamr as a volunteer and commentedI have de same problem :/
Comment #4
aronne CreditAttribution: aronne at bmeme commentedhi @tuhin123, please could you upload a flipping book generated via flip book software or at least a screenshot of the flipping book folder structure?
Thanks.
Comment #5
aronne CreditAttribution: aronne at bmeme commentedComment #6
DewanCodes CreditAttribution: DewanCodes commentedI am getting the same error of 'page not found' when I try to import new flip book in a zip format.
Comment #7
g0blin79 CreditAttribution: g0blin79 commentedPlease guys attach your no-working flippingbooks or at least a screenshot of the flippingbook folder structure. Otherwise we cannot help you to solve your problems...
Comment #8
irishdan CreditAttribution: irishdan as a volunteer commentedSame issue for me. I can;t upload the file as it is my clients. When comparing the file with a working one it looks like it is missing a 'common' directory. Also missing:
files/common/loader/flash-init.js
files/common/analytics/ua.js
files/assets/flash/pages/page0001_s.png
files/common/styles/style.css
files/common/analytics/ua.js
files/assets/flash/pages/page0001_s.png 404 (Not Found)
files/flash/checkflash.js
Comment #9
LChun CreditAttribution: LChun commentedHello,
For me index.html wasn't in the root directory of the zip file, instead it was in a folder which was the name of the Flipping book. I created a patch that searches the zip for the index.html file. I'm not sure if that is the correct thing to do, but it worked for me.
Hopefully this helps someone out.
Cheers,
Lewis
Comment #10
ikit-claw CreditAttribution: ikit-claw as a volunteer commented@LChun
Would this patch also work with the Drupal 8 version as it appears to have the same issue?
Thanks
Comment #11
julian_0521 CreditAttribution: julian_0521 commentedI have same problem! any solution?
Comment #12
Rob230 CreditAttribution: Rob230 as a volunteer and at CTI Digital commentedI am seeing the same thing. For us, it is because inside the zip there is already a directory, for example if the Flipping Book was called 'Test' then a zip file called
test.zip
containedtest/index.html
, and the module extracts this totest/test/index.html
, which means test/index.html results in a 404.I have attached a patch which fixes it. I didn't want to make it always assume that the zip file would be structured like that, so I instead searched in the zip file for the top-level index.html file, and if this was inside a directory that matches the zip file's name, the zip file won't be extracted to a subdirectory.
The trouble with just changing the
$destination
that gets saved in the record (as in #9) is it will then leave behind directories when you delete a Flipping Book.