Forum Replies Created
-
AuthorPosts
-
Hi,
Custom pages are special pages that are excluded from search, sitemap creation, indexing, …. and are not accessible for not logged in users –
return 404.
Therefore I personally think it is no good idea to have a custom 404 page as frontpage. Better is to duplicate the content into an own page.As our theme has to stay compatible with other plugins like WPML and YOAST implementing a solution for that in core would make us problems.
But I added filters to core that allow you to modify the behaviour to your needs.
You find the modified file: https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_4/custom404/class-avia-custom-pages.php
If you use WPML you also need: https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_4/custom404/config-wpml/config.php
The filters are:
avf_show_inactive_special_pages
avf_404_supress_status_code
avf_forced_reroute_to_404avf_404_redirect_status
avf_maintenance_redirect_statusI added the same changes to our dev repo – so they should become part of the core.
I hope this helps you.
Best regards,
GünterFebruary 19, 2019 at 12:44 pm in reply to: Seeking "In-kind" solution to upgrade to Enfold 4.5.1 #1068910Hey Justin Henson,
If you are using Enfold you must have bought it on Envato Market place. Login with your account and you ahould have access to the updates of Enfold.
Best regards,
GünterFebruary 19, 2019 at 12:40 pm in reply to: Unable to connect second Language home page when click flag in language switcher #1068898Hi,
Thank you for using Enfold.
We try to keep Enfold compatible with as many plugins as possible – but as there are so many plugins around it is not possible to support all of them.
Enfold has a focus on WPML – and this plugin is supported (https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990?ref=mr4k&gclid=CjwKCAiA767jBRBqEiwAGdAOr9yH7PCyt4HYhTgmi3ScprVYodIPcZ76pg6YF5LIHKQ86ITYTMB0yBoCyjMQAvD_BwE )
Polylang is not in the supported list of plugins. Nevertheless I downloaded it and had a quick look. But I was not able to figure out how to add the flags to the menu.
I’m afraid in this case we are not able to help you. Maybe Polylang changed something ?
Consider to switch to WPML.
Best regards,
GünterHi,
Thanks for reporting this.
Please update line 278 and 279:
$output .= "<li class='language_" . $lang['language_code'] . " $currentlang'><a href='" . esc_url( $lang['url'] ) . "'>"; $output .= " <span class='language_flag'><img title='" . $lang['native_name'] . "' src='". esc_url( $lang['country_flag_url'] ) . "' alt='" . $lang['native_name'] . "' /></span>";
I added a pull request to our dev repo for the next update.
Best regards,
GünterFebruary 19, 2019 at 11:00 am in reply to: Bug report: Improper handling of custom 404 page #1068867Hi,
Thanks for reporting this.
As a first step can you try to update to 4.5.4 – there has been some changing in the logic for 404 and maintenance mode page handling.
But I will open an issue to recheck this also.
Best regards,
GünterFebruary 18, 2019 at 6:21 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1068522Hi,
I added the fix to a pull request in our dev repo – It should become part of the core.
Best regards,
GünterHi,
I uploaded enfold.zip in the avia_logfile directory – download this file, unzip and update your other sites via FTP.
That file contains the latest fixes not in 4.5.4 – it should work now without notices except for REST API calls – these still produce errors – I’m currently working on this.
Best regards,
GünterHi,
Just seen an error in conjunction with a REST API call (…./wp-json/wp/v2/posts/).
Checking for a fix for that.
Temporary I uploaded the latest version of Enfold including the latest fixes to the avia_logfile directory.
If you want you can update your other sites with that. I will let you know when the REST API problem is solved.Best regards,
GünterHi,
Danke dass Du Enfold verwendest – und dass das Problem gelöst wurde.
Viel Freude mit dem Theme und einen schönen Tag.
Best regards,
GünterHi,
Did you already update to 4.5.4?
There had been some improvements.
If the problem is not solved in the latest version – can we have an admin account to check your settings with YOAST – because I have no problems on my dev server.
Best regards,
GünterHi,
Have a look at https://digwp.com/2012/05/attach-unattached-media-files/
As ths behaviour is a standard WP behaviour – it should not be part of a theme to change this – and the problem is also – you can attacb an image only to one page/post/… What to do with an already attached image?
I will ask Kriesi but I’m sure he does not want to do any changes in core about that.
You can check for plugins (Google: wp plugin attach media to posts).
Best regards,
GünterHi,
I found the bug.
I updated 3 files for you on 1 site:
enfold\includes\loop-index.php
enfold\includes\loop-page.php
enfold\includes\loop-portfolio-single.phpI left the logfile script in enfold\config-templatebuilder\avia-template-builder\php\shortcode-template.class.php.
I deleted the old log files, but I think there should be no more errors coming.
Can you check that everything is displayed as it should.
If we do not see any more log entries you can revert shortcode-template.class.php to the original.
For the other sites please update the three files with the files in this folder:
Thank you for allowing us to use your site – it was a great help.
I also removed the debug mode setting – so the additional textfield is not shown any longer (is part of the debug and shows the shortcodes generated by ALB).
The fix should be in the next update.
Best regards,
GünterHi,
log2.txt shows the problem:
If you look at the first 2 arrays: The second one is the internal shortcode tree that is generated when saving the post. It shows 1 entry.
But the post content has 2 shortcodes: av_masonry_gallery and av_image.I activated the ALB debuging mode – you have a button Show Parser Info – this opens a new window and there you find a tab Shortcode tree. It is correct stored.
I extended the logfile output.
If I copy the post content to my dev environment it does not trigger any error (even with YOAST active).
Did you already try to deactivate the Classic Editor plugin – you should not need it. You have a theme option for that (Theme Options tab).
Best regards,
GünterHi,
See private content.
Best regards,
Günter- This reply was modified 5 years, 11 months ago by Günter.
Hi,
Just recieved them.
Can you tell if they occur when you work in backend and what page ?
I will have a look into your site now.
Best regards,
GünterHi,
Great it helped you.
I will close this thread but feel free to open a new one if you need further assistance.
Enjoy the theme.Best regards,
GünterFebruary 15, 2019 at 3:29 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1067472Hi,
I think I found the fix.
Can you please replace enfold\config-templatebuilder\avia-template-builder\assets\js\avia-tinymce-buttons-4.js
Do not forget to make a backup for a fallback – and clear browser and server cache.
If you need assistance let us know and we can do it for you.
Best regards,
GünterHi,
Sorry for the problems. They are caused because of old PHP versions. We would recommend to upgrade minimum to version 5.6 or higher (also for security) – http://php.net/supported-versions.php
Please replace the file enfold\includes\helper-post-format.php with https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_4/helper-post-format.php.
Do not forget to make a backup for fallback.
Alternate you can replace line 213:
$hide_featured_image = empty( get_post_meta(get_the_ID(), '_avia_hide_featured_image', true ) ) ? false : true;
with
$hide_featured_image = get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ); $hide_featured_image = empty( $hide_featured_image ) ? false : true;
If you need assistance let us know and we can do it for you.
Best regards,
GünterHi,
I created a test portfolio (Enfold Test) and uploaded a featured image (test-embed_) and an image with the “Bild” shortcode (test-embed_ – Kopie).
Both are assigned to the portfolio entry.As I said before, WP does not assign images that are already in the media library – this is also if you use a standard WP theme like 2019 for posts and pages.
Best regards,
GünterHi,
These folders have been part of the core and are used to seperate plugin specific compatibility code from core.
If you do not want to include these files look at enfold\functions.php line 618ff and remove the lines with the require_once statements.Best regards,
GünterHi,
“include” habe ich verschoben.
“merging” hab ich bereits seit 6.Sept. in den Pull Requests – Kriesi bis jetzt noch nicht gemerged.
“TinyMCE” Button hab ich eingebaut in core – ist auch in den Pull Requests.
Best regards,
GünterHi,
I had a look at your site and tried it. After entering data in the required fields I got the ****.
In my opinion – if it would be a problem with the theme then it would be reproduceable and occur more often.
And Enfold does not hook into any “communication” on the checkout page.The only thing I see is in the console is on pageload:
SyntaxError: identifier starts immediately after numeric literal view-source:https://app.viralsweep.com/promo/ca/47740-38377_1549992181But that has nothing to do with Enfold.
Did you already try to deactivate all other plugins except WC and this payment gateway?
Best regards,
GünterHi,
I uploaded the modified file enfold\config-templatebuilder\avia-template-builder\php\shortcode-template.class.php including the logfile output:
Changes have been made in line 508ff.
Make a backup of the original file and replace the complete content.
Then keep an eye on the logfile in …/uploads/avia_logfile/log.txt.
Best regards,
GünterHi,
4.5.4 has integrated the fix you did before manually. You should be OK to keep this version ans you can update the other sites also.
Let me know when you are done.Best regards,
GünterHi,
Sorry, not in the next update 4.5.4 (was too late).
Will check for portfolio box also – thx.
Best regards,
GünterHi,
I will try to login tomorrow and try to add the changes to the php files in madomains.com as a first step.
Best regards,
GünterHi,
I added a filter in core: avf_newsbox_image_size
Meanwhile replace enfold\framework\php\class-framework-widgets.php with https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_4_5_3/class-framework-widgets.php
How to use the filter check https://github.com/KriesiMedia/enfold-library/blob/master/actions%20and%20filters/Widgets/avf_newsbox_image_size.php
Hope this helps.
The filter is added in line 804.
Best regards,
Günter- This reply was modified 5 years, 11 months ago by Günter.
Hi,
I wrote a small script that creates a logfile in the uploads folder: …/uploads/avia_logfile/log.txt in case it encounters again undefined index.
In enfold\config-templatebuilder\avia-template-builder\php\shortcode-template.class.php line 413:
if(empty( $this->builder->disabled_assets[ $this->config['shortcode'] ]) || empty( $this->config['disabling_allowed'] ) ) { $content = $this->shortcode_handler($atts, $content, $shortcodename, $meta); }
Before $content insert:
if( ( ! defined( 'DOING_AJAX' ) || DOING_AJAX !== true ) && ( ! isset( $meta['index'] ) ) ) { $upload_dir = wp_upload_dir(); if( ! empty( $upload_dir['basedir'] ) ) { $log_dirname = trailingslashit( $upload_dir['basedir'] ) . 'avia_logfile'; if( ! file_exists( $log_dirname ) ) { wp_mkdir_p( $log_dirname ); } $logfile = trailingslashit( $log_dirname ) . 'log.txt'; $data = date('d/m/Y H:i:s', time()) . ': shortcode_handler_prepare - $meta[index] not set for ' . $shortcodename . "\r\n"; file_put_contents( $logfile, $data, FILE_APPEND ); } }
Make a backup of the original file for a fallback and keep an eye on the logfile as there is no length check.
To check that the file will be created replace
$meta['index']
in the first line with
$meta['xyz']
and load a small page with ALB content. The file should be created and contain some lines. Replace xyz with index again.
Best regards,
Günter -
AuthorPosts