In this case we commit all our plugin files to our repo, and deploy them with a CI tool, but the .gitignore file included ignores the vendor directory resulting in a critical error.
]]>I was wondering if maybe you knew how to configure wp-env with Release Candidates of WordPress. The only documentation I could find is here: https://developer.www.ads-software.com/block-editor/reference-guides/packages/packages-env/ And only tells me how to switch to the master Branch or a specific version. I am using wp-env in CI and want to use my E2E tests to make sure, that a WordPress update doesn’t break my plugin, before it is rolled out of course.
Thank you!
]]>wp-content/plugins/w3-total-cache/wp-content/advanced-cache.php
I have a question, when we talk about CI / CD, I have an application in WP and I am implementing CI / CD in my repo, does the WP hold totally in relation to BD? how can i apply CI in my application?
]]>I need to work on a WP multisite. With:
– Main site www.domain.com
– Subsite1 www.domain.com/subsite1
– Subsite2 www.domain.com/subsite2
– …
– SubsiteN www.domain.com/subsiteN
Main Site, Subsite1, 2, etc. will be using exactly the same data.
To avoid posts duplication so for easier maintenance purpose, I just wonder if:
1/ I could use SubsiteN as a repository with:
– Custom Post Types as CI;
– and related Custom fields as CI’s attributes.
2/ Then I could query this repository from Main Site, Subsite1, 2, etc. to manipulate/populate Main Site, Subsite1, 2, etc. posts’ data with SubsiteN’s data.
As we are dealing with the same database, I thought I could have made it easily, but answers in Groups are not that straightforward or seem to be no.
– Is it really impossible? Should I modify my data strategy? And how?
– If it is not, could you please revert me to a tutorial I might have missed?
– Any feedbacks on this strategy will be also appreciated.
I do thank you for your time to my questions. I am quite new to WP dev.
BRgds, NLE92500
]]>The issues started over the summer when our daily views jumped from 8000+ a day to over 11000+ a day. And they’ve held since. However we started experiencing server crashes, disk wear and tear and finally I/O issues causing regular outages.
We cannot establish the root cause but narrowed it down to either slidedeck or jetpack. Slidedeck is turned off and we will investigate that separately.
I am concerned about Jetpack as this is an integral part of wordpress and we have been dependent on the site stats and some of the functions. We are investigating.
But the jump in views is bothering as this might be a major contributing factor.
During all this it hit me that I could use an expert to consult. Our hosts are competent on the backend, they are providing an excellent service on the server, storage, network and facilities. But I need an expert to consult regarding the database, application and interfaces and how they all work together. Are there any recommended groups or people that provide professional wordpress services?
]]>I am building a site using WordPress, and I would like to set Continuous Integration so it will be easy to move between dev, staging and production environment.
Have anyone used TeamCity with WordPress to configure continuous integration?
Things I am concerned about are:
* Applying changes to the DB (both schema changes and data changes)
* Changing blog url as part of moving between the environments
Thanks,
Guy
When the Chinese characters get stored in the database,
(by inserting them into a form located in the settings page.)
they return from the database as ??????.
My database collation has been set to
utf8_unicode_ci
I have
/** 建立資料表時預設的文字編碼 */
define(‘DB_CHARSET’, ‘utf8’);
/** 資料庫對照型態。如果不確定請勿更改。 */
define(‘DB_COLLATE’, ‘utf8_unicode_ci’);
in the wp-config.
can someone tell me what the problem is?
]]>I know this isn’t advisable; I have already built a system back-end in CodeIgniter, the client has a wordpress theme he wants to use though, and to manage the front end pages.
I’ve managed to get this working up to a point:
I’ve got wordpress installed at root level /
then I have codeigniter off the root at /ci/
In my codeigniter ‘index.php’ I have the following to avoid the ‘site_url’ collision.
require_once '../wp-blog-header.php';
add_filter('site_url', 'ci_site_url', 1);
function ci_site_url()
{
include(APPPATH.'/config/config.php');
return $config['base_url'];
}
This is all OK; I can call get_header & get_footer from CodeIgniter which is great.
What is causing me no end of grief though, is WordPresses handling of sessions. I’m using a codeigniter session, which is actually stored within the $_COOKIE array by the looks of things.
On the codeigniter pages I have that call the get_header and get_footer functions, the codeigniter session ($_COOKIE) seems to be getting reset. On the inital load, its present but on any subsequent requests its disappeared. I’ve been going through codeigniters code forever trying to find anything that might be doing this. The only thing remotely similar is ‘wp_unregister_GLOBALS()’ in load.php (wp_includes)
However this is not the cause. I’ve tried commenting out this function and the problem remains.
Is there anywhere in WordPress that may be causing this to be reset/emptied?
Strangely enough, pages created through WordPress seem to be ok. Just CI pages that are calling the get_header / footer functions.
]]>