eworm / wordpress-import Goto Github PK
View Code? Open in Web Editor NEWA statamic addon to import Wordpress XML files
A statamic addon to import Wordpress XML files
Hi! Thank you so much for this! I'm hoping to use this to migrate a Wordpress site to Statamic 2 but currently running into errors when trying the 'update the addons' step after placing the expanded zip file into tmp/statamic/site/addons/
.
Any advice would be greatly appreciated!
Shell output:
/tmp/statamic # php please update:addons
[ReflectionException]
Class Statamic\Addons\Eworm-Wordpress-import-a7609d1\WordpressImport\WordpressImportListener does not exist
The complete output:
Whoops, looks like something went wrong.
1/1
ReflectionException in Container.php line 741:
Class Statamic\Addons\Eworm-Wordpress-import-a7609d1\WordpressImport\WordpressImportListener does not exist
in Container.php line 741
at ReflectionClass->__construct('Statamic\Addons\Eworm-Wordpress-import-a7609d1\WordpressImport\WordpressImportListener') in Container.php line 741
at Container->build('Statamic\Addons\Eworm-Wordpress-import-a7609d1\WordpressImport\WordpressImportListener', array()) in Container.php line 631
at Container->make('Statamic\Addons\Eworm-Wordpress-import-a7609d1\WordpressImport\WordpressImportListener', array()) in Application.php line 674
at Application->make('Statamic\Addons\Eworm-Wordpress-import-a7609d1\WordpressImport\WordpressImportListener', array()) in helpers.php line 62
at app('Statamic\Addons\Eworm-Wordpress-import-a7609d1\WordpressImport\WordpressImportListener') in EventServiceProvider.php line 41
at EventServiceProvider->boot(object(Dispatcher))
at call_user_func_array(array(object(EventServiceProvider), 'boot'), array(object(Dispatcher))) in Container.php line 507
at Container->call(array(object(EventServiceProvider), 'boot')) in Application.php line 734
at Application->bootProvider(object(EventServiceProvider)) in Application.php line 717
at Application->Illuminate\Foundation\{closure}(object(EventServiceProvider), '19')
at array_walk(array(object(EventServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(ControllerServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FormRequestServiceProvider), object(FoundationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ValidationServiceProvider), object(ViewServiceProvider), object(AppServiceProvider), object(CollectionsServiceProvider), object(ServiceProvider), object(DataServiceProvider), object(FilesystemServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(BladeServiceProvider), object(AddonServiceProvider), object(EmailServiceProvider), object(ValidationServiceProvider), object(ServiceProvider), object(CacheServiceProvider), object(StacheServiceProvider), object(GlideServiceProvider), object(ServiceProvider)), object(Closure)) in Application.php line 718
at Application->boot() in BootProviders.php line 17
at BootProviders->bootstrap(object(Application)) in Application.php line 203
at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Statamic\Bootstrap\UpdateConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 222
at Kernel->bootstrap() in Kernel.php line 117
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 155
at require_once('/tmp/statamic/index.php') in server.php line 21
This all being done on a quickly plagiarized Dockerfile:
# alpine:3.6
FROM alpine@sha256:d6bfc3baf615dc9618209a8d607ba2a8103d9c8a405b3bd8741d88b4bef36478
RUN apk add --no-cache \
php7 \
php7-ctype \
php7-curl \
php7-dom \
php7-fileinfo \
php7-gd \
php7-imagick \
php7-json \
php7-mbstring \
php7-openssl \
php7-pdo \
php7-phar \
php7-tokenizer \
php7-xml \
php7-xmlwriter \
php7-zip \
unzip \
wget
ENV COMPOSER_VERSION 1.5.2
ENV COMPOSER_CHECKSUM c0a5519c768ef854913206d45bd360efc2eb4a3e6eb1e1c7d0a4b5e0d3bbb31f
RUN wget -q https://getcomposer.org/download/$COMPOSER_VERSION/composer.phar && \
echo "$COMPOSER_CHECKSUM composer.phar" | sha256sum -c - && \
mv composer.phar /usr/bin/composer && \
chmod +x /usr/bin/composer
ENV STATAMIC_VERSION 2.8.10
ENV STATAMIC_CHECKSUM be546b067c84b42efd8865f7169050a3cec07d3aabaa1f4c9dfa837bae60182f
RUN wget -q https://outpost.statamic.com/v2/get/$STATAMIC_VERSION -O statamic-$STATAMIC_VERSION.zip && \
echo "$STATAMIC_CHECKSUM statamic-$STATAMIC_VERSION.zip" | sha256sum -c - && \
unzip -q statamic-$STATAMIC_VERSION.zip -d /tmp/ && \
rm statamic-$STATAMIC_VERSION.zip
WORKDIR /tmp/statamic/site/addons/
RUN wget -q https://statamic.com/download/178 -O xml_import_addon.zip && \
unzip xml_import_addon.zip
WORKDIR /tmp/statamic/
RUN php please update:addons
EXPOSE 3000
ENTRYPOINT ["/usr/bin/php"]
CMD ["-d", "memory_limit=512M", "-S", "0.0.0.0:3000", "statamic/server.php"]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.