Christoph Daum
Forum Replies Created
-
The list of my plugins/themes that use PHP sessions is easy. It’s just Ninja Firewall.
I’ve found a quite old Stackoverflow post that pretty much resembles what i’ve measured.
https://stackoverflow.com/questions/13772074/session-start-takes-very-long-time
I for sure could try to convince our hosting team to provide a different method for storing the sessions, so that it would no longer be blocking. But that will still leave most other sites using Ninja Firewall unattended.
The issue where I ran into a problem is within the editor. It’s not unusual that you’ll have 10-30 requests to the internal API when using the editor in short succession. And if session_start() is still blocking in PHP, it will result in ramping up of loading times, since the amount of parallel execution of api requests for one editor is limited.
So let me rephrase my initial question to:
Could you please forward this to your development team and try to figure out a way to remove the use of session_start() in order to speed up Ninja Firewall 🙂
If any of your developers is in Turin next week, I’m happy to discuss that in person.
Forum: Fixing WordPress
In reply to: Site hacked. Sub pages not showing correct contentHi @lomokev what you see at rockcakes.com/about is not a spam page. It is a kind of a coming soon page delivered by your hoster.
In the top right of that page, you should see something similar to “This domain was recently registered. Why do I see this page” (I am german, I translated the text)
I think that your .htaccess is broken or missing. Normally regenerating this, should fix your issue.
Try going to https://rockcakes.com/wp-admin/options-permalink.php and selecting any kind of pretty permalink and hit “Save Changes”.Could you try this and let us know, wether this fixes your issue?
Forum: Everything else WordPress
In reply to: Username/email not registeredHey @cheerietomoto,
your reset plugin might have deleted too much. I guess you are talking about the login through your IONOS control panel (known as SSO)? When using a reset plugin, this will be broken.
You can do the following things:
- Assuming your WordPress site is empty anyway, you can delete the complete instance, and create a fresh install using the control panel. This would be the easiest and quickest solution.
- You can log into your webspace using ssh, and create a new user using the wp cli. This will require a little technical knowledge, if you are not familiar with the command line, you might want to ignore this solution.
- You can contact the customer support at IONOS and ask them to repair the SSO.
I hope this helps you.
Greetings Christoph
@torsten3d In case you figure out it is related to the hosting, please ping me, I’d be happy to help. But first follow Mustafas guide, he will know best.
Hard to tell precisely without seeing the code, but I’m pretty sure it goes down to your upload.
I suggest that you only upload:
wp-content/themes/
wp-content/plugins/
wp-content/uploads/A dump of your Database.
And you’ll need to do your wp-config.php and possibly follow the instructions of Plugins like WordFence to create missing files.
Hey @waltdsn,
is that error message from your local machine, or from the IONOS Webserver?
The “C:\Users\…\Local Sites\eisrtest\app” is a windows path on your local machine, so this by design cannot work on any webserver.
Just as an example, it’s basically like saying “hey, there is still a cherry yoghurt in the fridge in the kitchen”, but you’re in the office, and there is neither a kitchen nor a fridge, so obviously no yoghurt, since that “path” is only valid if you are at home.
Assuming that this path is on your webserver, I have some guesses.
1. There is that path in your wp-config.php, or maybe in some WordFence related config file.
2. There is some custom code you wrote, which contains that path.
3. There is this path somewhere in your database. (Though this is pretty unlikely)Could you check this?
And could you tell us, what you meant by “import my local site”, what do you try to upload?Thank you in advance.
Forum: Plugins
In reply to: [Smart Slider 3] [BUG?] Slides shown below each otherHello @nextend_ramona
in /Nextend/WordPress/OutputBuffer.php line 76-86 you have an exception for Cachify, if you’d duplicate this behavior to work in line with our IONOS Performance plugin, it will work just fine.
Greetings Christoph
https://core.trac.ww.wp.xz.cn/ticket/51986
There is a known issue.
Forum: Everything else WordPress
In reply to: WordPress 5.6 Upgrading IssueI have the same issue, among my active plugins is redux, and quite a long list of custom plugins.
Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in /wp-includes/rest-api/class-wp-rest-server.php on line 1402
Call Stack
# Time Memory Function Location
1 0.0109 488824 {main}( ) …/post.php:0
2 3.6107 69597144 require( ‘/wp-admin/edit-form-blocks.php’ ) …/post.php:187
3 3.6108 69600920 array_reduce ( ) …/edit-form-blocks.php:82
4 3.6108 69600920 rest_preload_api_request( ) …/edit-form-blocks.php:82
5 3.6108 69601520 rest_do_request( ) …/rest-api.php:2520
6 3.6820 71674264 WP_REST_Server->dispatch( ) …/rest-api.php:479
7 3.6858 71732896 WP_REST_Server->respond_to_request( ) …/class-wp-rest-server.php:1007
8 3.6858 71732896 WP_REST_Server->get_index( ) …/class-wp-rest-server.php:1160
9 3.6900 72029472 WP_REST_Server->get_data_for_routes( ) …/class-wp-rest-server.php:1243
10 3.6909 72042136 WP_REST_Server->get_data_for_route( ) …/class-wp-rest-server.php:1324
11 3.7373 72049584 array_intersect_key ( ) …/class-wp-rest-server.php:1402For testing I edited the code of class-wp-rest-server.php to:
foreach ( $callback[‘args’] as $key => $opts ) {
if ( ! is_array( $opts ) ) {print_r( $callback[‘args’] );
echo “\n”;
print_r( $opts );
echo “\n\n”;
}
$arg_data = @array_intersect_key( $opts, $allowed_schema_keywords );
$arg_data[‘required’] = ! empty( $opts[‘required’] );$endpoint_data[‘args’][ $key ] = $arg_data;
}For more see: https://core.trac.ww.wp.xz.cn/ticket/51986#comment:2
- This reply was modified 5 years, 4 months ago by Christoph Daum. Reason: Added xdebug message
- This reply was modified 5 years, 4 months ago by Christoph Daum. Reason: added more debug information
- This reply was modified 5 years, 4 months ago by Christoph Daum. Reason: Added link to trac
Forum: Developing with WordPress
In reply to: Coding Standards for if with assignmentsThis was the answer on GitHub by JDGrimes:
Yes, B is definitely what is intended here. There are also other sniffs that check for assignments within conditions. I get a warning from WordPress.CodeAnalysis.AssignmentInCondition for the initial example. Putting assignments within conditionals is generally considered bad practice, because it can lead to mistakenly having an assignment instead of a condition (= instead of ==), when a conditional check is actually what is intended.
Forum: Developing with WordPress
In reply to: Coding Standards for if with assignmentshttps://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1110 if anyone wants to follow.
Forum: Developing with WordPress
In reply to: Coding Standards for if with assignmentsOk will do.
Forum: Plugins
In reply to: [Apermo AdminBar] Notice: Undefined property …Hi Stefan,
I see the problem wpdb::$dmtable refers the the domain mapping table of the multi site installation, I will add an if exists check to avoid the notice.
Sorry for the late response, probably overlooked the notification.
Forum: Reviews
In reply to: [Apermo AdminBar] Fantastic plugin!Thanks a lot for your kind review 🙂