Code Monkey home page Code Monkey logo

wordpress-sandstorm's Introduction

WordPress Sandstorm package

This is the Sandstorm package of WordPress. It depends on this fork of WordPress.

Wordpress main view

How to

The package is done with vagrant-spk, a tool designed to help app developers package apps for Sandstorm.

You can follow the below mentioned steps to make your own package or to contribute.

Prerequisites

You will need to install:

Step by Step

git clone https://github.com/sandstorm-io/vagrant-spk
git clone https://github.com/sandstormports/wordpress-sandstorm
cd vagrant-spk
export PATH=$(pwd)/vagrant-spk:$PATH
cd ..
cd wordpress-sandstorm
vagrant plugin install vagrant-vbguest
vagrant-spk vm up
vagrant-spk dev

visit http://local.sandstorm.io:6090/ in a web browser

Note: when you want to fork this repo and create actual app packages for the app store you would need either the original app key or create a new one and make your own version of the app.

wordpress-sandstorm's People

Contributors

dwrensha avatar garrison avatar jamborjan avatar neynah avatar ocdtrekkie avatar xet7 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wordpress-sandstorm's Issues

New Gutenberg editor not working in Sandstorm

Currently I excluded the new Gutenberg editor in the Sandstorm Port of WordPress because an error occurs. Saving a new post or page doeasn't work. In the browser console you can see:

index.js?ver=1533578375:1 POST http://ui-6803106256ce63a444ff0499be686df5.local.sandstorm.io:6080/wp-json/wp/v2/posts/5 400 (Bad Request)

and

{code: "rest_cannot_edit", message: "Sorry, you are not allowed to edit this post.",…}
code
:
"rest_cannot_edit"
data
:
{status: 401}
message
:
"Sorry, you are not allowed to edit this post."

I'll take a look at this and try to include the Gutenberg editor in one of the next packages of the app.

See branche: https://github.com/sandstormports/wordpress/tree/feature-gutenberg-test

setup https page with wordpress on sandstorm

From @JamborJan on May 14, 2016 14:40

When I setup a wordpress page on sandstorm and update my name server as advised I can only open the webpage via http and not https. I know there would be the need to store my private certificate within the wordpress instance or somehow use a similar feature as sandcats has to get letsencrypt certs which ends in the same situation where my private cert and key must be stored in the instance.

Any ideas how this can be solved?

Copied from original issue: dwrensha/wordpress-sandstorm#25

WPML Plugin doesn't work

From @tiagoefreitas on November 1, 2015 23:57

This is one of the most used WP plugins (wpml.org), not working with the following error:

WPML is missing some records in the languages tables and it cannot fully work until this issue is fixed.

Log:

2015/11/01 23:56:22 [error] 36#0: *1938 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/wordpress/wp-content/plugins/sitepress-multilingual-cms/inc/taxonomy-term-translation/wpml-term-translations.class.php on line 768" while reading upstream, client: 127.0.0.1, server: , request: "GET /wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Ftroubleshooting.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "9cabdd95058d85557189b2927bb34c0a.oasis.sandstorm.io"

Copied from original issue: dwrensha/wordpress-sandstorm#13

RSS Feed doesn't contain valid links

I have my WP site set up to send mailchimp emails for new posts. The URLs in the emails (or the 'view in browser pages' of the emails) don't work. Having done some digging, I used this feed validator on my site:

https://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fsmallworldadventures.net%2Ffeed%2F

and right at the top I see:

line 13, column 8: link must be a full and valid URL: / [help]

	<link>/</link>
        ^

This may just be a config thing I have wrong... if so maybe someone can tell me how to fix it... but it looks like the domain is not being set correctly in the RSS feed.

PS this is a self hosted sandcats domain with a custom domain for the WP grain.

Installing certain Plugins causes Error 500

From @JamborJan on February 19, 2018 19:29

Installing certain plugins like:

cause a grain to constantly create a 500: Internal Server Error.

bildschirmfoto 2018-02-19 um 20 23 13

Others like

work well. I know due to the special configuration of Wordpress on Sandstorm not all plugins work but destroying a grain completely should be avoided.

Debug Log after installing the Yoast plugin:

Debug log: Plugin TEST 01
...** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns
started php-fpm. status code: 0
started nginx. status code: 0
2018/02/19 19:10:01 [emerg] 42#42: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:01 [emerg] 44#44: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:01 [emerg] 46#46: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:01 [emerg] 45#45: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:21 [error] 42#42: *40 FastCGI sent in stderr: "PHP message: PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /wordpress-read-only/wp-includes/update.php on line 303
PHP message: PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /wordpress-read-only/wp-includes/update.php on line 467" while reading upstream, client: 127.0.0.1, server: , request: "POST /wp-admin/update.php?action=upload-plugin HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my server name"
2018/02/19 19:10:24 [error] 42#42: *50 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function apply_filters_deprecated() in /var/wordpress/wp-content/plugins/wordpress-seo/admin/menu/class-admin-menu.php:246
Stack trace:
#0 /var/wordpress/wp-content/plugins/wordpress-seo/admin/menu/class-admin-menu.php(36): WPSEO_Admin_Menu->get_manage_capability()
#1 /wordpress-read-only/wp-includes/plugin.php(525): WPSEO_Admin_Menu->register_settings_page('')
#2 /wordpress-read-only/wp-admin/includes/menu.php(149): do_action('admin_menu', '')
#3 /wordpress-read-only/wp-admin/menu.php(279): require_once('/wordpress-read...')
#4 /wordpress-read-only/wp-admin/admin.php(138): require('/wordpress-read...')
#5 /wordpress-read-only/wp-admin/plugins.php(10): require_once('/wordpress-read...')
#6 {main}
  thrown in /var/wordpress/wp-content/plugins/wordpress-seo/admin/menu/class-admin-menu.php on line 246" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my server name"
** SANDSTORM SUPERVISOR: Grain shutdown requested.
** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns
started php-fpm. status code: 0
started nginx. status code: 0
2018/02/19 19:10:42 [emerg] 34#34: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:42 [emerg] 36#36: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:42 [emerg] 38#38: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:42 [emerg] 37#37: io_setup() failed (38: Function not implemented)
2018/02/19 19:10:48 [error] 34#34: *15 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function apply_filters_deprecated() in /var/wordpress/wp-content/plugins/wordpress-seo/admin/menu/class-admin-menu.php:246
Stack trace:
#0 /var/wordpress/wp-content/plugins/wordpress-seo/admin/menu/class-admin-menu.php(36): WPSEO_Admin_Menu->get_manage_capability()
#1 /wordpress-read-only/wp-includes/plugin.php(525): WPSEO_Admin_Menu->register_settings_page('')
#2 /wordpress-read-only/wp-admin/includes/menu.php(149): do_action('admin_menu', '')
#3 /wordpress-read-only/wp-admin/menu.php(279): require_once('/wordpress-read...')
#4 /wordpress-read-only/wp-admin/admin.php(138): require('/wordpress-read...')
#5 /wordpress-read-only/wp-admin/index.php(10): require_once('/wordpress-read...')
#6 {main}
  thrown in /var/wordpress/wp-content/plugins/wordpress-seo/admin/menu/class-admin-menu.php on line 246" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my server name"

And for the Divi Plugin:

Please contact your server administrator.) in /wordpress-read-only/wp-includes/update.php on line 303
PHP message: PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /wordpress-read-only/wp-includes/update.php on line 467" while reading upstream, client: 127.0.0.1, server: , request: "POST /wp-admin/update.php?action=upload-plugin HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my server name"
** SANDSTORM SUPERVISOR: Grain still in use; staying up for now.
2018/02/19 19:27:36 [error] 42#42: *90 FastCGI sent in stderr: "PHP message: PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /wordpress-read-only/wp-includes/update.php on line 123
PHP message: PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /wordpress-read-only/wp-includes/upd" while reading upstream, client: 127.0.0.1, server: , request: "POST /wp-admin/update.php?action=upload-plugin HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my server name"
2018/02/19 19:27:36 [error] 42#42: *90 FastCGI sent in stderr: "ate.php on line 303
PHP message: PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /wordpress-read-only/wp-includes/update.php on line 467" while reading upstream, client: 127.0.0.1, server: , request: "POST /wp-admin/update.php?action=upload-plugin HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my server name"
2018/02/19 19:27:50 [error] 42#42: *144 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function wp_get_custom_css() in /var/wordpress/wp-content/plugins/divi-builder/includes/builder/core.php:54
Stack trace:
#0 /var/wordpress/wp-content/plugins/divi-builder/includes/builder/core.php(66): et_builder_maybe_enable_inline_styles()
#1 /var/wordpress/wp-content/plugins/divi-builder/includes/builder/framework.php(3): require_once('/var/wordpress/...')
#2 /var/wordpress/wp-content/plugins/divi-builder/divi-builder.php(209): require('/var/wordpress/...')
#3 /var/wordpress/wp-content/plugins/divi-builder/divi-builder.php(46): ET_Builder_Plugin->et_plugin_setup_builder()
#4 /var/wordpress/wp-content/plugins/divi-builder/divi-builder.php(339): ET_Builder_Plugin->__construct()
#5 /wordpress-read-only/wp-includes/plugin.php(525): et_divi_builder_init_plugin('')
#6 /wordpress-read-only/wp-settings.php(392): do_action('init')
#7 /wordpress-read-only/wp-config.php(98): require_once('/wordpress-read...')
#8 /wordpress-read-only/wp-load.php(37):" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my server name"

Copied from original issue: dwrensha/wordpress-sandstorm#34

Metadata updates

Reminder on metadata currently out of date, close when resolved:

  • David's email address is still the package contact. (Who is the contact for "wpsandstorm"?)
  • The source code URL still goes to David's repo.

BackupBuddy plugin doesn't work

From @tiagoefreitas on November 3, 2015 23:15

Is there an easy way to migrate to a full (non-standstorm) WP install? I was trying to use this plugin to make it easier but I get the following errors:

2015/11/03 23:12:12 [error] 35#0: *504 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function mysql_ping() in /var/wordpress/wp-content/plugins/backupbuddy/lib/wpdbutils/wpdbutils.php on line 170" while reading upstream, client: 127.0.0.1, server: , request: "GET /wp-admin/admin.php?page=pb_backupbuddy_backup&backupbuddy_backup=1&after_destination=&delete_after= HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "5532afe6ad5ba402697ae33c682f8b06.oasis.sandstorm.io"

Copied from original issue: dwrensha/wordpress-sandstorm#14

Build Process

I'd like to discuss a build process which is suitable for frequently updating Wordpress on Sandstorm. This should include as much as possible automation in the future. For the beginning we can keep it simple and do things manually.

I was thinking of something like this. As said before: most steps should be automated in the future if possible.

  • New Release of WordPress is available
  • Renamed old a master Branch of our working copy of Wordpress to something like "4.9 branch"
  • create a new master branch wit the latest source code
  • Apply all necessary changes to the new branch to make Wordpress run on Sandstorm
  • Run vagrant-spk dev and do some testing
  • If that seems to work do vagrant-spk pack
  • Creat draft of release on Github, add changelog
  • Do some more detailed testing according to checklist (needs to be created)
  • Send SPK to some more testers
  • If all Ok release to app store
  • Create final release on Github

Any thoughts?

Permalinks change every time the grain is opened

From @JamborJan on November 28, 2016 15:1

As the name says, permalinks shout stay the same, always.

Current situation

Always after re-opening a grain the permalink will change:

bildschirmfoto_2016-11-28_um_16_02_08

bildschirmfoto_2016-11-28_um_16_08_27

The issue is not as big when you know, that you always can use the main link, displayed on the dashboard.

bildschirmfoto_2016-11-28_um_16_11_56

Desired situation

To avoid confusion of the user, the permalink should always be displayed with the never changing url which is displayed on the dashboard page.

Copied from original issue: dwrensha/wordpress-sandstorm#29

Error when trying to upload a theme

From @dwrensha on September 10, 2015 19:15

@alisalaah says:

After uploading a theme I get the page "Are you sure you want to do this?" but with nothing to click.

When navigating back to the Add Theme page to try again I get a blank page that says "No such grain for public ID: ... [404]" only on the page where you would upload a theme.

If I restart the grain and go back then I can attempt to upload again but with same result. I tried a new grain and got the same behavior.

Copied from original issue: dwrensha/wordpress-sandstorm#9

'bulk actions' doesn't work

I added a tag two times to 100 posts, and nothing changed. Though I get "100 posts updated." message every time.

capnp build error

From @xet7 on February 7, 2018 21:41

@kentonv

When I try to build wordpress-sandstorm .spk file in vagrant with this script:
https://github.com/wekan/wordpress-sandstorm/blob/master/build-spk-in-vagrant.sh

I get this error when building capnp. How can this be fixed?

libtool: install: chmod 644 /usr/local/lib/libcapnpc.a
libtool: install: ranlib /usr/local/lib/libcapnpc.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c capnp capnpc-capnp capnpc-c++ '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/capnp /usr/local/bin/capnp
libtool: install: /usr/bin/install -c .libs/capnpc-capnp /usr/local/bin/capnpc-capnp
libtool: install: /usr/bin/install -c .libs/capnpc-c++ /usr/local/bin/capnpc-c++
make  install-exec-hook
make[3]: Entering directory '/home/vagrant/capnproto/c++'
ln -sf capnp /usr/local/bin/capnpc
ldconfig < /dev/null > /dev/null 2>&1 || true
make[3]: Leaving directory '/home/vagrant/capnproto/c++'
 /bin/mkdir -p '/usr/local/lib/cmake/CapnProto'
 /usr/bin/install -c -m 644 cmake/CapnProtoConfig.cmake cmake/CapnProtoConfigVersion.cmake cmake/CapnProtoMacros.cmake cmake/CapnProtoTargets.cmake '/usr/local/lib/cmake/CapnProto'
 /bin/mkdir -p '/usr/local/include/capnp'
 /usr/bin/install -c -m 644 src/capnp/c++.capnp src/capnp/schema.capnp src/capnp/rpc.capnp src/capnp/rpc-twoparty.capnp src/capnp/persistent.capnp src/capnp/compat/json.capnp '/usr/local/include/capnp'
 /bin/mkdir -p '/usr/local/include/capnp'
 /usr/bin/install -c -m 644 src/capnp/c++.capnp.h src/capnp/common.h src/capnp/blob.h src/capnp/endian.h src/capnp/layout.h src/capnp/orphan.h src/capnp/list.h src/capnp/any.h src/capnp/message.h src/capnp/capability.h src/capnp/membrane.h src/capnp/schema.capnp.h src/capnp/schema-lite.h src/capnp/schema.h src/capnp/schema-loader.h src/capnp/schema-parser.h src/capnp/dynamic.h src/capnp/pretty-print.h src/capnp/serialize.h src/capnp/serialize-async.h src/capnp/serialize-packed.h src/capnp/serialize-text.h src/capnp/pointer-helpers.h src/capnp/generated-header-support.h src/capnp/raw-schema.h src/capnp/rpc-prelude.h src/capnp/rpc.h src/capnp/rpc-twoparty.h src/capnp/rpc.capnp.h src/capnp/rpc-twoparty.capnp.h src/capnp/persistent.capnp.h src/capnp/ez-rpc.h '/usr/local/include/capnp'
 /bin/mkdir -p '/usr/local/include/capnp/compat'
 /usr/bin/install -c -m 644 src/capnp/compat/json.h src/capnp/compat/json.capnp.h '/usr/local/include/capnp/compat'
 /bin/mkdir -p '/usr/local/include/kj'
 /usr/bin/install -c -m 644 src/kj/common.h src/kj/units.h src/kj/memory.h src/kj/refcount.h src/kj/array.h src/kj/vector.h src/kj/string.h src/kj/string-tree.h src/kj/encoding.h src/kj/exception.h src/kj/debug.h src/kj/arena.h src/kj/io.h src/kj/tuple.h src/kj/one-of.h src/kj/function.h src/kj/mutex.h src/kj/thread.h src/kj/threadlocal.h src/kj/filesystem.h src/kj/async-prelude.h src/kj/async.h src/kj/async-inl.h src/kj/time.h src/kj/timer.h src/kj/async-unix.h src/kj/async-win32.h src/kj/async-io.h src/kj/main.h src/kj/test.h src/kj/windows-sanity.h '/usr/local/include/kj'
 /bin/mkdir -p '/usr/local/include/kj/compat'
 /usr/bin/install -c -m 644 src/kj/compat/gtest.h src/kj/compat/url.h src/kj/compat/http.h '/usr/local/include/kj/compat'
 /bin/mkdir -p '/usr/local/include/kj/parse'
 /usr/bin/install -c -m 644 src/kj/parse/common.h src/kj/parse/char.h '/usr/local/include/kj/parse'
 /bin/mkdir -p '/usr/local/include/kj/std'
 /usr/bin/install -c -m 644 src/kj/std/iostream.h '/usr/local/include/kj/std'
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 pkgconfig/capnp.pc pkgconfig/capnp-rpc.pc pkgconfig/capnp-json.pc pkgconfig/kj.pc pkgconfig/kj-async.pc pkgconfig/kj-http.pc pkgconfig/kj-test.pc '/usr/local/lib/pkgconfig'
make[2]: Leaving directory '/home/vagrant/capnproto/c++'
make[1]: Leaving directory '/home/vagrant/capnproto/c++'
(cd sandstorm && make CXX=g++)
make[1]: Entering directory '/opt/app/sandstorm'
make[1]: *** No rule to make target '/opt/sandstorm/latest/usr/include/sandstorm/*.capnp', needed by 'tmp/genfiles'.  Stop.
make[1]: Leaving directory '/opt/app/sandstorm'
Makefile:29: recipe for target 'sandstorm/bin/getPublicId' failed
make: *** [sandstorm/bin/getPublicId] Error 2
Connection to 127.0.0.1 closed.
Command failed with a non-zero exit status (2).

BR,
xet7

Copied from original issue: wekan/wordpress-sandstorm#1

this_will_be_replaced_by_sandstorm needs to be replaced even when escaped in JS strings

From @kentonv on December 2, 2015 2:36

http://ninjility.com/, which appears to be hosted on Sandstorm, has this blob at the top:

    <script type="text/javascript">
        window._wpemojiSettings = {"baseUrl":"http:\/\/s.w.org\/images\/core\/emoji\/72x72\/","ext":".png","source":{"concatemoji":"http:\/\/this_will_be_replaced_by_sandstorm:10000\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.3.2-alpha"}};
        !function(a,b,c){function d(a){var c=b.createElement("canvas"),d=c.getContext&&c.getContext("2d");return d&&d.fillText?(d.textBaseline="top",d.font="600 32px Arial","flag"===a?(d.fillText(String.fromCharCode(55356,56812,55356,56807),0,0),c.toDataURL().length>3e3):(d.fillText(String.fromCharCode(55357,56835),0,0),0!==d.getImageData(16,16,1,1).data[0])):!1}function e(a){var c=b.createElement("script");c.src=a,c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g;c.supports={simple:d("simple"),flag:d("flag")},c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.simple&&c.supports.flag||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);
    </script>

As you can see there is a case of this_will_be_replaced_by_sandstorm that failed to be replaced in there, because the '/'s are for some reason escaped (who knew '/' was a valid escape sequence in Javascript?).

This actually leads to an error reported on the JS console when loading the site.

Copied from original issue: dwrensha/wordpress-sandstorm#15

404s are not nice formatted

From @JamborJan on February 26, 2017 20:30

Usually templates offer nice formatted 404 error pages including the possebility to incude a search form etc. Unfortunately the sandstorm version doesn't have that.

I'm not quite at the point where I can nail down the root cause but I will try to find something.

@dwrensha can you maybe please add some intsruction to README.md so that I can make a build to test my changes?

What you get today when you open a not existing URL like mydomain.com/something/wrong:
bildschirmfoto 2017-02-26 um 21 33 46

What you might want (example):
bildschirmfoto 2017-02-26 um 21 30 43

Copied from original issue: dwrensha/wordpress-sandstorm#31

Sending emails from wordpress

From @JamborJan on October 31, 2015 14:46

To make use of a contact form it would be required that the sandstorm port of wordpress is able to send emails. I know that this will be one of the drivers being available later.

It would be cool that smtp connections would be allowed e.g. with this plugin: https://downloads.wordpress.org/plugin/easy-wp-smtp.zip

With the mentioned extension I have the following problem:

  • To use TLS OpenSSL would be required, when setting up the extension to use it an error message is shown

bildschirmfoto 2015-10-31 um 15 42 44

  • when using plain text email I get the error message SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

bildschirmfoto 2015-10-31 um 15 43 44

As I'm not quite sure how the sandstorm port of wordpress is build I don't know which of the solutions posted here https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting might work.

Is there any plan of allowing to send emails by wordpress e.g. for contact forms?

Thanks!

Copied from original issue: dwrensha/wordpress-sandstorm#12

Screenshots should be updated

We should get a nice (larger) image of WordPress's control panel home as seen in Sandstorm (with the Rebuild Public Site button visible), and of one or two blogs hosted via Sandstorm, and replace the aging screenshots David used.

They should then be minified as much as possible with https://tinypng.com/ so it doesn't cap out the metadata size limit on Sandstorm.

Home button on generated public WP site calls wp-login.php

From @paulproteus on August 9, 2015 18:32

@avcobe writes on sandstorm-io/sandstorm#672

  1. Generated a public site from the wp site built in the sandstorm server.
  2. removed cookies and history (firefox on mac)
  3. browsed to the site but could not go to homepage after leaving it for some other page on the site. (wp-login.php appended on the homepage url)

(I'm moving this issue here to the WordPress-specific issue tracker.)

Copied from original issue: dwrensha/wordpress-sandstorm#7

RSS links get served as text/html

From @mrdomino on July 21, 2016 19:53

On my private site, if I visit /feed/, I get a response content-type of application/rss+xml. On the public site, that link gets rewritten as /feed/index.html and served as text/html. This seems weird. I can't tell if this is bad or not, aside from causing Chrome to try to render it.

Copied from original issue: dwrensha/wordpress-sandstorm#26

Release 17 tends to hang on powerbox-http-proxy setup

I am unsure what causes this, but it seems to happen for upgrades or sometimes on the second/additional launch of a grain that has previously worked correctly.

I'm guessing the proxy never creates the root cert, because it can't find the environment variable.

continue.sh is the related script here: https://github.com/sandstormports/wordpress-sandstorm/blob/master/continue.sh
but the environment variable is set in the pkgdef, here: https://github.com/sandstormports/wordpress-sandstorm/blob/master/.sandstorm/sandstorm-pkgdef.capnp

cc: @zenhack

** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns
waiting for root to be available at /var/ca-spoof-cert.pem.
2023/02/21 17:36:58 Error: environment variable "POWERBOX_WEBSOCKET_PORT" is not defined.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.
waiting for root to be available at /var/ca-spoof-cert.pem.

Plugin: All-in-One WP Migration

From @cbyreddy on August 12, 2016 21:19

I am using a plugin (All in One WP Migration) to migrate an existing WordPress site to sandstorm.
When I try to import the created file which is around 300MB, the plugin just hangs at 0%.
This is not a plugin issue since it is working on other WP installation.

Is this a Sandstorm limitation?

Copied from original issue: dwrensha/wordpress-sandstorm#28

Support fully private blogs

From @garrison on February 13, 2016 0:38

As discussed on IRC on 2015-02-10, it would be great if wordpress-sandstorm supported private blogs. Of course, a blog is private until its public link is shared, but once that link is shared it is difficult to revoke. It would be great instead to be able to disable the public site entirely.

Copied from original issue: dwrensha/wordpress-sandstorm#17

// urls shouldn't get changed to http

From @mrdomino on March 1, 2016 17:41

I wrote a post with a script src="//some/url" in it (specifically, an embedded tweet). In the published site, that became an http link. Since I'm static-publishing over https, that means it didn't resolve.

Can't set up a wordpress instance to try to get a more complete report unfortunately, but hopefully that's a good start.

Acceptable alternatives would be to just point to https, or to preseve the //.

Copied from original issue: dwrensha/wordpress-sandstorm#22

loss of new posts

Very often after making up a post I see following message, and I should redo complete post! There was a case I get a lot of it back with a note that it found more information in my browser than in the draft. But most of the time I just left without anything. Could it be solved with more frequent draft saving inside WP?

The link you followed has expired.

Please try again.

Will keep an eye on it, if it occurs after creating a post in the window which was around for a long time.

Maybe a workaround will be to refresh the page before starting a new post.

Publishing website under alternate URL

From @zeigerpuppy on February 25, 2016 8:45

I am trying to setup sandstorm wordpress for external access
Is there a mechanism similar to the Ghost app, where CNAME and TXT records can be mapped to the URL?
I tried using something like the following (names and numbers changed to protect the innocent!)
I am using djbdns and similar code worked fine for Ghost

# CNAME
Cwpblogss.fqdn.net:1729626999a6a7d8918a13199dss.fqdn.net
# TXT record
'sandstorm-www.wpblogss.fqdn.net:1729626999a6a7d8918a13199

However, I get an error on browsing there
No such grain for public ID: 1729626999a6a7d8918a13199 [404]

Copied from original issue: dwrensha/wordpress-sandstorm#19

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.