• Resolved robzarryjr

    (@robzarryjr)


    Hello!

    I installed PDF 2 post, guessing I did something wrong as I get this error when I try to use the New Post From PDF function:

    File upload successful! attachementy ID : 5CANNOT OPEN zip here: unknown error

    Is there a log file I can look at to help troubleshoot?

    Thanks!

    Rob

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author termel

    (@munger41)

    Are all required server installations ok?
    Especially zip one ?

    Thread Starter robzarryjr

    (@robzarryjr)

    Thanks for the speedy reply!

    I think the server installations are OK. Here’s what I see on the plugin page:

    The following libraries NEED to be installed on your server :
    ZipArchive Ok
    PDFMiner
    Python
    Installed: 2.7.12 (default, Dec 4 2017, 14:50:18)
    pdfimages

    I tested PDFMiner using the command line instructions in their installation guide. Not sure how to best test ZipArchive & pdfimages?

    Happy to jump on a screen sharing session if that is easier for you.

    Also, I have a zip file with hundreds of PDFs in it that is organized by directory. Is that something PDF 2 POST can handle?

    Thanks!!!

    Rob

    Plugin Author termel

    (@munger41)

    Can you send us the zip archive so as we can test it? https://www.termel.fr/contact/
    At the moment the plugin only handles pdf at the root of a zip.

    Thread Starter robzarryjr

    (@robzarryjr)

    Thanks for the offer.

    This is a much larger discussion, and one I’d like to have once I get past this first issue and can upload a single zip file with a PDF in it…

    Does PDF to Post produce a log file that I can check to see what the problem is?

    If not, what’s the best way to troubleshoot?

    Thanks!

    Plugin Author termel

    (@munger41)

    Yes PDF2Post writes into default wordpress log file under wp-content/ : debug.log
    If no interesting infos there, i could add more debug in the plugin to understand whats going on, or you could send us the failing zip in order to debug step by step on our side.
    Cheers

    Plugin Author termel

    (@munger41)

    You can also send us the log file itself for analysis (just after you process you buggy zip file) and /or screen captures if something shows up

    Thread Starter robzarryjr

    (@robzarryjr)

    Hmm, I don’t see a a log file there?

    /var/www/html/wp-content$ ls
    index.php plugins themes upgrade uploads

    I’m probably doing something wrong, just not sure what it is?

    Plugin Author termel

    (@munger41)

    Please check if your wp-config.php files has enabled debug : https://codex.www.ads-software.com/Debugging_in_WordPress

    You should have a line like this:

    define( 'WP_DEBUG', true );

    • This reply was modified 7 years ago by termel.
    Thread Starter robzarryjr

    (@robzarryjr)

    Here’s the debug log:

    [25-Feb-2018 14:10:01 UTC] Using command: python -c ‘import sys; print sys.version’
    [25-Feb-2018 14:10:01 UTC] Py version: [GCC 5.4.0 20160609]
    [25-Feb-2018 14:10:01 UTC] Array
    (
    [0] => 2.7.12 (default, Dec 4 2017, 14:50:18)
    [1] => [GCC 5.4.0 20160609]
    )

    [25-Feb-2018 14:10:01 UTC] PHP Notice: Undefined variable: additionnalText in /var/www/html/wp-content/plugins/pdf2post/pdf2post.php on line 75
    [25-Feb-2018 14:10:43 UTC] Array
    (
    [name] => Meals for Montana Funding .pdf.zip
    [type] => application/zip
    [tmp_name] => /tmp/phpKTA9Q1
    [error] => 0
    [size] => 464169
    )

    [25-Feb-2018 14:10:43 UTC] <—
    [25-Feb-2018 14:10:43 UTC] <— Multiple Files received (draft) :
    [25-Feb-2018 14:10:43 UTC] <—
    [25-Feb-2018 14:10:43 UTC] PHP Warning: ZipArchive::open(): Empty string as source in /var/www/html/wp-content/plugins/pdf2post/pdf2post.php on line 258
    [25-Feb-2018 14:10:43 UTC] CANNOT OPEN zip here:
    [25-Feb-2018 14:10:43 UTC] Using command: python -c ‘import sys; print sys.version’
    [25-Feb-2018 14:10:43 UTC] Py version: [GCC 5.4.0 20160609]
    [25-Feb-2018 14:10:43 UTC] Array
    (
    [0] => 2.7.12 (default, Dec 4 2017, 14:50:18)
    [1] => [GCC 5.4.0 20160609]
    )

    [25-Feb-2018 14:10:43 UTC] PHP Notice: Undefined variable: additionnalText in /var/www/html/wp-content/plugins/pdf2post/pdf2post.php on line 75

    Thread Starter robzarryjr

    (@robzarryjr)

    Happy to send the zip file, don’t see a way to attach via this UI?

    Send by email?

    Plugin Author termel

    (@munger41)

    Hi, yes it seems there is a problem here:
    PHP Warning: ZipArchive::open(): Empty string as source in /var/www/html/wp-content/plugins/pdf2post/pdf2post.php on line 258

    Please use the contact form to send it over : https://www.termel.fr/contact/

    Thanks

    Thread Starter robzarryjr

    (@robzarryjr)

    Here’s the larger picture of the project:

    I’m helping Kimberley Motley put a database of world laws online.

    I have a zip file that has a directory per country then inside each directory is a list of files that represent whatever law documentation is available.

    In an ideal world PDF 2 POST would take open the master zip file, create a top level page per country that was blank, then add a sub-page per country where each page was the name of the file and the text on the page was the contents of the file.

    This feels like a special use case so may not be part of your core product design / plan.

    If so, I completely understand, just trying to see how much manual labor I can avoid via this awesome plugin.

    If it doesn’t fit your plans, I’ll probably work on scripting something from the command line level, that just feels painful… ??

    Plugin Author termel

    (@munger41)

    Thanks for your sending, it seems it works with the PDF file directly but not the zip : it says the zip is an empty file, but it’s not…
    I need to investigate more.

    Plugin Author termel

    (@munger41)

    It seems it does not work with any zip file, although it did before…
    i wonder if the problem is linked to a recent wordpress upgrade

    Thread Starter robzarryjr

    (@robzarryjr)

    Sorry about that! I thought I had done the installation steps properly but was guessing it was a mistake on my side… If there is any information (versions, etc.) that I can provide to help you troubleshoot please let me know. Happy to help, love this plugin’s functionality!!!

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Installation problem?’ is closed to new replies.