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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tuhin123’s picture

to add , i have this file in my server still it shows this error

g0blin79’s picture

Assigned: tuhin123 » aronne
Admincamr’s picture

I have de same problem :/

aronne’s picture

hi @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.

aronne’s picture

Status: Active » Postponed (maintainer needs more info)
DewanCodes’s picture

I am getting the same error of 'page not found' when I try to import new flip book in a zip format.

g0blin79’s picture

Please 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...

irishdan’s picture

Same 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

LChun’s picture

FileSize
951 bytes

Hello,

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

ikit-claw’s picture

@LChun

Would this patch also work with the Drupal 8 version as it appears to have the same issue?

Thanks

julian_0521’s picture

I have same problem! any solution?

Rob230’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
2.46 KB

I 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 contained test/index.html, and the module extracts this to test/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.