Forum Replies Created
-
AuthorPosts
-
Hi,
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, 9 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, 9 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ünterHi,
Thanks for reporting this.
Sounds strange – because Enfold does not hook into any checkout logic – and we did not get any similar bug reports.
Can you try to reproduce the problem and then try to disable all other not needed plugins and check ?
Best regards,
GünterHi,
This is a known problem. I already tried to find a solution – but Kriesi and I finally rejected it because it could cause more problems with existing sites and break them.
Removing the
<br>
happens already in js when clicking the save button and not in php – therefore the php filters won’t work.
Probably the soloution from @guenni007 with
<br class="noclear">
is a good workaround.
At the moment we do not have a stable working solution for that.
@Guenni007 Thanks for joining :)Best regards,
GünterFebruary 11, 2019 at 4:43 pm in reply to: Filtering products not working when using Advanced layout builder on Shop page #1065485Hi,
Sorry for the late reply but I got tagged for this topic today for the first time – and I did not find a report about that in our dev. repo before.
To make it easier for me to reproduce – could you give me a WP admin account for your backend and a link to the page pls so I can have a look?
Thx in advance.Best regards,
GünterHi,
Thank you for using Enfold.
I tried to reproduce – but it seems to work fine for me.
Can you create an admin account for us and give us a link to the portfolio and steps to reproduce so we can check?
I can reproduce if I select an already uploaded unattached image – but if I select such an image as featured image for a page in WP Theme 2019 this image is also not attached to the page.
Best regards,
GünterFebruary 8, 2019 at 1:53 pm in reply to: "Your comment is awaiting moderation" does not appear #1064575Hi,
Strange.
Are the login credentials still valid?
And can you also give me the link to the page pls?Best regards,
GünterFebruary 7, 2019 at 12:00 pm in reply to: Using 'Insert Theme Shortcode' when multiple wysiwyg editors not working #1064051Hi,
Thanks for the feedback. Now I can reproduce it.
I will add this to our dev repo and will try to find a fix asap.
Best regards,
GünterFebruary 7, 2019 at 11:47 am in reply to: Beitrag duplizieren & neue Seite anlegen verändert das Layout #1064036Hi,
Tut mir leid, dass da einiges nicht funktioniert hat. Ismael hat mich erst heute verständigt.
Ich komme momentan nicht mehr auf Deine Seite.
Kannst Du mir bitte einen WP admin account einrichten?
Hast Du schon versucht alle plugins zu deaktivieren?
LG,
GünterHey Alexander,
Try to use the filter avf_alb_supported_post_types ( Avia_Builder()->get_supported_post_types() ) and add your post types to the array.
Best regards,
GünterFebruary 6, 2019 at 6:46 pm in reply to: Open DIVS destroying custom page functionality, Footer broken. #1063717Hey Anthony,
Thank you for using Enfold.
You are using a lot of plugins and a map element that is not Enfold standard.
The only chance to find out what breaks the layout is by trying:
– Remove all custom code you made to Enfold core files
– Remove all non Enfold ALB elements
– Start building the page element be element and check stucture after each element
– It might also be necessary to deactivate plugins also and check, then reactivate one after the other and check
– Also remove all compression of js and css files and checkBest regards,
Günter -
AuthorPosts