atelier64
Forum Replies Created
-
Hi,
I don’t know what kind of magic this code is. But it’s works.
It does exactly what I was looking for.Thank you very much for your help.
Hi,
I can search on the website in the main language when I’m not logged in.
I didn’t use any custom code for this. Did you mean that not-logged in users can’t search in languages other than main language?Hi, Thank you for the reply.
This is not resolved yet.The ideal solution would be that everyone can search. Logged in or not logged in.
When someone is not logged in and searches, he will only get results from pages that are accessible to logged in users.
When someone is logged in, they will see all the results.This should work the same for all languages.
Searching in English should return only English results. French should display only French pages.If the above is not possible, this could be an alternative:
Not logged in, and use the search: redirect to homepage of current language.
Logged in, and use the search: results in current langauge.I tried your code. But then not logged in users are redirected to the homepage of main language. That is not the right solution.
Forum: Plugins
In reply to: [WP Search with Algolia] Autocomplete sort on relevanceWhen I now select All posts in the Autocomplete section, all posts are showing. That’s actually what I was looking for. I’m not completely satisfied with the results yet. I will optimize that.
I found how to exclude the post types from search in registration post type for my own post types I created.
Now I have only selected “All posts”. But when I also select another custom post type (cars), that has ‘exclude_from_search’ => true, than I see them in the results… So selecting another post type will override the exclude from search?
In the Autocomplete list I see In addition to my post types, a lot of other registrations from other plugins such as Flamingo, cookie plugin, tags,…
I see there are codes to make certain post types not searchable via functions.php if 1 of these could be found.Many thanks.
You made me find the right solution.Forum: Plugins
In reply to: [WP Search with Algolia] Autocomplete sort on relevanceThank you for your reply.
I found the All posts row. But the problem is that I can’t use that because there are post types that should not be found. Probably there is an option or possibility to not make all posts findable (searchable_posts) in the All posts indexing?
I did not make any custom configuration in the plugin (except css).
Also in Algolia I didn’t make many adjustments. I mainly use the synonyms there.SUHOSIN: Your server does not have SUHOSIN installed.
Hi,
So when I setup a new WordPress website with multisite and ultimate member on another hosting or local then the error should not appear?
Then I’m going to try with Xampp on localhost.
When I don’t see the error, then the error would lie with the hosting company?Any news about this problem?
Hi,
There are nu upload problems. I can upload images as usual.
The error only occurs with a multisite.
I have ultimate member installed on other websites on same hosting. There are no problems on those websites that are not multisite.So on multisite I don’t see errors on the main site. Only on subsites.
This is that error:
https://snipboard.io/ARieNJ.jpg
Left image is on subsite of multisite.
Right image is main site of multisite.
I don’t think it makes sense that a directory is not writable to the subsite and to the main site it is?
If it was not writable, then the error should be visible on all websites?Anyway, if I check this document: https://docs.ultimatemember.com/article/114-photo-uploads-not-working
I checked the following:
– correct permissions to wp-content/uploads/ultimatemember –> This upload folder is writable. Has the same settings.
– Increase the WordPress memory limit via wp-config.php –> Is already define( ‘WP_MEMORY_LIMIT’, ‘1024M’ );
– Maximum upload file size: 50 MB.I did not contact the hosting support because there are no upload problems.
If you want a can setup a dev hosting with only ultimate member on multisite so you can check the error yourself?
– I don’t normally use ultimate member’s uploads directory. I mainly use Ultimate member to give user roles access to pages or not. They should not be able to register.
- This reply was modified 2 years, 5 months ago by atelier64.
[12-Oct-2022 12:25:10 UTC] PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/data/ultimatemember/temp/): Failed to open directory: No such file or directory in /data/sites/web/*******/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-menu.php:277
Stack trace:
#0 /data/sites/web/*******/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-menu.php(277): RecursiveDirectoryIterator->__construct()
#1 /data/sites/web/*******/wp-content/plugins/ultimate-member/includes/admin/templates/dashboard/purge.php(4): um\admin\core\Admin_Menu->dir_size()
#2 /data/sites/web/*******/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-menu.php(245): include_once(‘/data/sites/web…’)
#3 /data/sites/web/*******/wp-admin/includes/template.php(1401): um\admin\core\Admin_Menu->purge_temp()
#4 /data/sites/web/*******/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-menu.php(315): do_meta_boxes()
#5 /data/sites/web/*******/wp-includes/class-wp-hook.php(307): um\admin\core\Admin_Menu->admin_page()
#6 /data/sites/web/*******/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#7 /data/sites/web/*******/wp-includes/plugin.php(476): WP_Hook->do_action()
#8 /data/sites/web/*******/wp-admin/admin.php(259): do_action()
#9 {main}
thrown in /data/sites/web/*******/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-menu.php on line 277Hi,
Any news about my problem?
How can I fix this?Hi,
That was your suggestion in my previous post.
But that doesn’t work. I still see the title and read more button.
Excerpt and featured image are hidden (with or without 404 check).I did the test on a fresh WordPress installation with twenty twenty-one theme and guttenberg. Ultimate member is installed.
Here you can see 4 new posts:
https://a64-dev.be/You can see that all 4 posts are visible. When restrict access with 404 display, then the read more button is not visible. In my theme (Betheme) it’s still visible. But I want that nothing is visible when I restrict access for posts.
The 4 posts have different settings. The title of the message explains more about the setting used.
On the news page only 1 post is hidden. The post with 404 selected.
https://a64-dev.be/news/How can I make the posts completely invisible in loops?
Any news about this problem?
Hi,
The standard posts from WordPress.
https://prnt.sc/eg37aRywzQw_Yes, I use the WPBakery builder.
In the builder there is an element to loop posts.
My theme has a content-post.php file.That file has these code:
if ( $query->have_posts() ){
while ( $query->have_posts() ){
$query->the_post();
}
}
…And for example the “read more button” code is this:
$output .= ‘Read more‘;When I change “Read more” to “Read” in the php code. Then it’s also changed in the looped posts that is used with WPBakery Builder.
So, yes I think I have to customize it.
Can you point me in the right direction how I can customize this? Can I change something in the php file? Or,…“Is it possible that this worked last year?” Is there something changed in an update?
- This reply was modified 2 years, 8 months ago by atelier64.