Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty wp-content #54

Closed
elbaulp opened this issue Mar 25, 2015 · 9 comments
Closed

Empty wp-content #54

elbaulp opened this issue Mar 25, 2015 · 9 comments

Comments

@elbaulp
Copy link

elbaulp commented Mar 25, 2015

Hi, I am trying to export all my post, pages and uploads to jekyll but with no luck. The wp-content directory is empty.

I've tried with both wp-cli and php jekyll-export-cli.php > jekyll-export.zip. As I have a custom wordpress structure, I thought that wp-cli will solve the problem, but it didn't.

The first error that I've encounter with wp-cli was that it can not find jekyll-export as a command. So I downloaded the plugin to ~/.wp-cli as explained here https://github.com/wp-cli/wp-cli/wiki/Community-Packages

After that, the plugin was able to run, but with errors like:

PHP Fatal error: Cannot redeclare cli\render() 

After commenting all the function redeclared, I keep getting things like:

Cannot redeclare class Spyc in

I do not know what more I can do to be able to download the contents of wp-content.

Is worth mentioning that I have a custom wordpress structure, like this:

.
├── content
├── index.php
├── robots.txt
├── wordpress
└── wp-config.php

So I modified the file jekyll-export-cli to

include "../../../wordpress/wp-load.php";
include "../../../wordpress/wp-admin/includes/file.php";

Hope you can help me. Regards

@CaffGeek
Copy link

Same issue here, installed via wordpress plugins, activated, and got
Fatal error: Cannot redeclare class Spyc in /.../htdocs/blog/wp-content/plugins/jekyll-exporter/vendor/mustangostang/spyc/Spyc.php on line 57

@seraphyn
Copy link

seraphyn commented Nov 2, 2015

Sign
PHP Fatal error: Cannot redeclare class Spyc in /www/htdocs/got/wp-content/plugins/jekyll-exporter/vendor/mustangostang/spyc/Spyc.php on line 57 Fatal error: Cannot redeclare class Spyc in /www/htdocs/got/wp-content/plugins/jekyll-exporter/vendor/mustangostang/spyc/Spyc.php on line 57

@benbalter
Copy link
Owner

@ilessing
Copy link

ilessing commented Jan 1, 2016

I'm having a similar issue. I get the error without doing any jekyll-exporter operation. I get it as soon as I try to invoke the wordpress cli like this:
$ wp
Fatal error: Cannot redeclare class Spyc in /home/myuser/documentroot/wp-content/plugins/jekyll-exporter/vendor/mustangostang/spyc/Spyc.php on line 57

I'm running php 5.4.42 on Dreamhost
$ php --version PHP 5.4.42 (cli) (built: Jun 16 2015 00:23:52) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

@benbalter
Copy link
Owner

What other plugins do you have installed? Is it possible one of them relies on Spyc?

@AetherCollective
Copy link

@benbalter Just your own exporter mate. I'm getting the same error on a Windows 10 machine.

@dancrumb
Copy link

I also see this:

$ find /home/REDACTED/public_html/wp-content -type f -print0 | xargs -0 grep "class Spyc"
/home/REDACTED/public_html/wp-content/plugins/jekyll-exporter/vendor/mustangostang/spyc/Spyc.php:class Spyc {
/home/REDACTED/public_html/wp-content/plugins/jekyll-exporter/vendor/mustangostang/spyc/php4/spyc.php4:class Spyc {

So, the only declarations of that class are yours....

@dancrumb
Copy link

I wrapped the Spyc declaration in a if(!class_exists) and now I'm seeing the cli\render() error...

@stale stale bot added the wontfix label Apr 6, 2017
@stale
Copy link

stale bot commented Apr 6, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this as completed Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants