Mike Schinkel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot create Database@mikehenden —?You probably need to provide more details about your setup.
Did you write the
Vagrantfile
or did you get from somewhere else? What is your base box? (config.vm.box
?). Can you share a Gist of yourVagrantfile
?You say you created a database in SequelPro, correct? What did you name it?
Then you said you cannot connect to the DB; how did you create it if you cannot connect to it?
I assume you create and configured MySQL in your
Vagrantfile
? Or are you trying to use a MySQL installed on yourlocalhost
?Forum: Plugins
In reply to: [DMCA Protection Badge] [Suggestion] Allow “Build your Own Badge”@artgoddess —?Even though @newclarity is still listed, we have not worked on this plugin for maybe 5 years. @dmca now handles it fully inhouse, AFAIK.
Forum: Localhost Installs
In reply to: WordPress in virtual box don’t display rightHave you looked to make sure how have the correct permissions in all the directories of your WordPress site?
find . -type f -exec chmod 644 {} + find . -type d -exec chmod 755 {} +
Thanks for the reply!
Thanks.
Forum: Plugins
In reply to: [PNG to JPG] Fatal error on plugin activationWhat Vagrant environment are you using?
Looks like the plugin is being loaded twice. Any chance you have a theme functions file that is trying to load this? Or What other plugins are you using?
In the error message, regarding the ellipses in
previously declared in .../wp-content
, did you redact that or was that the error message? If you did redact it, was it previously/var/www/dev/dev6
or something else?What’s your typical WordPress development and deployment workflow?
Most of my work is backend (PHP/MySQL) and others on our team do the front-end work (HTML/CSS/JS/etc.). My team builds and maintains business-critical websites for our clients.
I use a Vagrant box for local development that we architected and built and make it available for others. I use PhpStorm + XDEBUG to edit and debug (we made our Vagrant box automatically work with XDEBUG.)
We version control projects with Git and host the repos at GitHub. We use Composer to manage project dependencies.
We typically use Pantheon as a web host and Git deploy from GitHub via a CircleCI deployment script we wrote and make available.
Should I look into Sage 9, and learn the “complete package” using Bedrock, and Trellis for deployment?
There are so many options here. We don’t use Sage because we built our own framework, but I understand Sage is excellent. Bedrock is also a pre-package workflow using Composer, so that would probably be work using. Trellis is an alternative to what we’ve developed so I won’t comment on it.
Or should I learn about Docker instead of Trellis?
Apples and oranges. But while they are different fruits you can get nutrition from either one.
Trellis is a Vagrant VM, and so is ours, for now. But ours also uses multiple Docker containers inside our VM to allow you to mix-and-match services internally (Apache vs. Nginx, MySQL vs. MariaDB, MySQL 5.x vs. MySQL 8.x, etc.) but most solutions using Docker for WordPress put everything needed (web server, DB server, PHP, etc) into one container, making it inflexibly without extra work.
IMO, building your own VMs and Docker containers is for developers people who want to also become sysadmins. It depends on if you want to spend the time to learn devops.
Or you can just use a pre-built VM — possible with Docker included — if you want things to “just work”; currently I’d say Local by Flywheel is the best choice for that (though we hope to give them a run for their money once we reach 1.0).
Should I learn React to be able to take full advantage of Gutenberg?
I have not been working with Gutenberg yet, so I will defer that to others.
Is there any other cutting edge tool / technology which you recommend learning?
Not sure if you will have the use-case to need it, but I have recently fallen in love with GoLang.
What is a good learning path for this? Any suggested resource? (books, websites, courses – even paid ones).
One of the very best ways to learn IMO is devote some time to answering questions at WordPress StackExchange with a goal to get as many reputation points as possible each day. Forcing yourself to dive in and figure out the answers before someone else can answer new questions and thus get points is both a great way to learn and also a great way to give back.
Hope this helps.
- This reply was modified 6 years, 1 month ago by Mike Schinkel. Reason: Formatting
Forum: Installing WordPress
In reply to: Now what do I do? (MacOS latest wp)lol! I used to be in that camp. And I used to love VirtualHostX for helping me manage Apache virtual hosts.
But after about four or five OSX updates I started to question the sanity of it because Apple would blow away my development configuration. Every. Single. Time. And then it would take hours to get it reconfigured.
Then I realized how nice it was to be able to have different versions of PHP and MySQL that were not such a PITA to switch, and how much nicer it would be to be able to run the Linux versions of services like Memcached and Redis and I was converted.
Then, several years later we decided to buildone for us as well as other people;. So now we are firmly in the “Virtual Dev Environment FTW!” camp. ??
#fwiw
- This reply was modified 6 years, 2 months ago by Steven Stern (sterndata). Reason: redacted link
- This reply was modified 6 years, 2 months ago by Steven Stern (sterndata).
Forum: Localhost Installs
In reply to: What is your setup?Ha! Be careful what you wish for, right? ??
Well, like I said, we are happy to provide support if you want to try WPLib Box.
Our goal — although we are not quite there yet — is to create the easiest local dev solution with a focus on “just working” but even when it doesn’t we want ours to tell you how to fix it.
Those principles guide everything we are going as we build it.
- This reply was modified 6 years, 2 months ago by Mike Schinkel. Reason: Used nbsp instead of mdash, doh!
@jrobie23 – Glad I could help.
[ Ad deleted ]
- This reply was modified 6 years, 2 months ago by Jan Dembowski.
- This reply was modified 6 years, 2 months ago by Jan Dembowski.
@sunshinephotocart Thanks. I am on a bit of a crusade to get plugin developers to get rid of those warning messages because using their plugin for local development is difficult as
WP_DEBUG
will throw those warnings with them and cause me to have to fork the plugin just to get rid of the warnings.I so wish www.ads-software.com would finally move to Git so I could easily provide pull requests for such fixes and be able to stay on the official version of the plugin.
@sunshinephotocart Hey, also, I would highly recommend using
WP_DEBUG
when developing if you are not already doing so. For example, using it I get this warning:Notice: Undefined index: proofing in /var/www/wp-content/plugins/sunshine- photo-cart/classes/frontend.class.php on line 643
ALSO you should recode your
create_functions
insunshine-widgets.php
on line85
and169
because they are deprecated in PHP 7.2 and will throw a warning.@jrobie23 – Looks like you are still on version
2.2.x
, the current version is2.7.3
? I think upgrading should solve your problem.The way I can tell is this error message:
Non-static method SF_Format_Options::settings_options_format() should not be called statically in /nas/content/live/ alpineimage/wp-content/plugins/sunshine-pro/classes/ sf-class-settings.php on line 460
SF_Format_Options::
has not been used to callsettings_options_format()
on line460
ofsf-class-settings.php
since the plugin’s version2.2.x
.Let me know if that is is?
- This reply was modified 6 years, 3 months ago by Mike Schinkel. Reason: Formatting
- This reply was modified 6 years, 3 months ago by Mike Schinkel. Reason: Formatting
- This reply was modified 6 years, 3 months ago by Mike Schinkel. Reason: Formatting
- This reply was modified 6 years, 3 months ago by Mike Schinkel.
Given all that, it’s really hard to say without diving in to debugging your website for you. Wish I had the bandwidth for that, but unfortunately don’t. Maybe someone else will be able to help.
Specifically to your question, what the error message is saying is that the assignment to
$post->post_content
is triggering an error because$post
is not an object on that line of code. Normally$post
should always be an object at this point, so there is almost certainly some plugin that is using one of the hooks above that is failing on you and returning anull
.Reading the code I think the only thing that could fail would be line
608
that callswp_insert_post()
to create an Auto Draft. My guess is you have a plugin that is failing to create theauto-draft
. ??Have you tried deactivating your plugins one-by-one?Alternately, have you considered setting up
XDEBUG
and using either PhpStorm or Visual Studio Code to set breakpoints on the line and then tracing backwards with breakpoints to find your error?Here is how to set up
XDEBUG
on MAMP:?
https://dillieodigital.wordpress.com/2015/03/10/quick-tip-enabling-xdebug-in-mamp-for-osx/And here is how for AMPPS:
https://apiworks.net/magento2/installing-xdebug-mac-osx-ampps/- This reply was modified 6 years, 3 months ago by Mike Schinkel. Reason: Formatting
- This reply was modified 6 years, 3 months ago by Mike Schinkel. Reason: Added AMPPS XDEBUG link