-
AuthorPosts
-
December 17, 2015 at 6:25 pm #554572
I just noticed that some of the shortcodes I had are no longer working (on some pages).
If you take the example link bellow as a reference, click on any of the pictures, it should load a box above where I have 3 columns division but these are not working, instead the shortcode is shown in raw as: [av_one_third first]
Thanks!
December 20, 2015 at 7:00 am #555553Any updates here?
December 21, 2015 at 5:56 am #555748Hi,
Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details in the Private Content section of your reply.
Best regards,
RikardDecember 21, 2015 at 6:08 am #555755Hey Rikard, thank you for your reply. This is a live website and one I am very protective off, as such I am a bit hesitant to provide admin access but I am more than happy to follow your troubleshooting steps and comply with any instructions.
I am a developer myself so I have no issues with digging through. To that end, I am providing some of the info I am certain you would like to have a look at in the private section.
Thanks!
- This reply was modified 8 years, 11 months ago by momon.
December 26, 2015 at 7:18 pm #557488Hey!
I checked link you have provided (private content), but can’t see any issues. Your website seems to work fine for me. Not sure what you mean and I think we need admin access, to be able to fully understand what’s it all about. Maybe you can copy this website to another for testing purposes.
Best regards,
AndyDecember 26, 2015 at 10:39 pm #557505Hey Andy, thank you.
Please refer to the screenshot bellow. Take note that the shortcode for [av_one_third first] is not being processed and instead it is just outputting the shortcode itself. This is breaking the layout of what I have setup.
Thank you.
December 27, 2015 at 7:35 pm #557610Hey!
based on your question here: https://kriesi.at/support/topic/enable-avia-layout-builder-on-custom-post-types/
I am suspecting if there might be an issue on that, which makes the problem you dealing now.Is it possible for us, to login on your web site?
Cheers!
BasilisDecember 27, 2015 at 8:12 pm #557614That has no effect. I removed everything and even reverted to the original theme and also disabled all plugins. The problem is with the theme, it is not translating the shortcodes on the portfolio items specifically in the “Add Preview Text” field for each item. It does convert them correctly in the body of the page, just not on the “Add Preview Text” box that is available on each item.
Thanks.
January 1, 2016 at 12:19 am #558785Hey!
Try the following;
– Disable all third party plugins
– Enable the parent theme.
– Create a test Portfolio item with simple texts within the Columns.Best regards,
JosueJanuary 1, 2016 at 2:53 am #558791I did explain before (twice) that I have already tried that and even after updating the theme tried a second time.
It makes no difference.
January 1, 2016 at 3:54 am #558792We’d need to check the site in order to debug it, if you can’t allow us access to the live site maybe you could create a staging version so we can run tests there.
Regards,
JosueJanuary 1, 2016 at 4:01 am #558793Try this on one of your demos so you can reproduce it:
[av_one_third first] One Third Column [/av_one_third] [av_two_third] Two Thirds Column [/av_two_third]
That should be on a porfolio entry, on the “Preview Text Box” at the bottom of the entry. This is the portion that shows up on the main gallery page when you click on an item.
I’ve tried that on the parent theme with NO PLUGINS installed and nothing other than your theme enabled and it DOES NOT converts the shortcodes, it just outputs the shortcodes itself without processing. So in your demo it should result in the same, you could then troubleshoot further once you have confirmed the bug.
Thanks!
January 1, 2016 at 4:39 am #558794January 1, 2016 at 5:06 am #558795is that on 3.4.7?
January 1, 2016 at 8:59 pm #558796Correct, it’s on the latest version of Enfold (3.4.7). Do you have PHP safe mode activated?
Regards,
JosueJanuary 1, 2016 at 10:11 pm #558798php safe mode is disabled on the server.
January 1, 2016 at 11:35 pm #558799One thing you can do is use the HTML version of columns:
<div class='flex_column av_one_third first'> Content </div> <div class='flex_column av_one_third '> Content </div>
Regards,
JosueJanuary 3, 2016 at 9:21 pm #558925Thank you. That seems like a viable alternative but sadly it would take me too long in adjusting all the portfolio entries one by one for this so I decided to disable the functionality.
I still feel this is a bug, Im not sure if perhaps it is related to a recent update and my active php version (5.4) or what exactly is causing it but I have ruled out everything else.
I have disabled all the plugins, I have removed all the themes except for the parent and the problem still happens, since I have nothing else under wordpress other than the main theme I am inclined to think the problem is with the theme. I wonder if in your test you are running wordpress 4.4 which is what I have and perhaps the issue is specific to this wordpress version?
Thanks.
January 4, 2016 at 12:11 pm #559125Hi!
Yes, my install is running on WP 4.4, it would be ideal if you can set-up a test install in the same server so we can do some debugging and maybe find the culprit of the issue.
Regards,
JosueJanuary 5, 2016 at 8:42 am #559765Ok I was finally able to create a development website that I can provide login for.
I have removed all plugins and activated the parent theme for you to test.
January 5, 2016 at 11:34 am #559846Hi!
Thanks but i can’t edit the theme files, try the following, open /config-templatebuilder/avia-shortcodes/portfolio.php and look for line 724:
$output .= $content;
Change it to:
$output .= do_shortcode($content);
Best regards,
JosueJanuary 5, 2016 at 9:02 pm #560125That didn’t make a difference.
I reverted the change back to original but have now enabled file editing in case you want to try out yourself. You should be able to edit within wordpress now. I have also given you ftp access bellow just in case
January 6, 2016 at 11:14 pm #560809Hey!
Check the first one “Test Portfolio Item”.
Regards,
JosueJanuary 6, 2016 at 11:36 pm #560830Check that same sample again.
Looks like the bug is related to using two thirds column.
This DOES NOT WORK:
[av_one_third first]Add Content here[/av_one_third] [av_two_third]Add Content here[/av_two_third]
This DOES WORK:
[av_one_third first]Add Content here[/av_one_third] [av_one_third]Add Content here[/av_one_third] [av_one_third]Add Content here[/av_one_third]
January 6, 2016 at 11:47 pm #560837Well that makes sense, seems there must be three
av_one_third
in order to work (you can place an empty one at the end if you want to use two).Cheers!
JosueJanuary 7, 2016 at 12:47 am #560856I’m not sure that makes sense at all (using an empty tag). I can use it as a work around but ideally it should work with only two (and it was working before, it only broke after an update). So would you confirm this is in fact a bug and escalate it for a future fix?
Thanks.
January 7, 2016 at 12:54 am #560858In my install i’m using two
av_one_third
and they do render, so i’m not sure if it would be considered a bug but maybe something that happens on a specific server environment.Regards,
JosueJanuary 7, 2016 at 12:59 am #560860Right-o and I appreciate your help here, but I’ve given you full access to the server, you can see the only thing installed and active is the parent theme and nothing else. I’m happy to tweak whatever server settings you believe are causing this but I don’t think that’s the case.
I’m running php 5.4 if that’s relevant but can easily switch to any other php version.
I just want an appropriate solution because going back to edit ALL of my portfolio items is not really an option and adding an empty tag is not precisely a professional solution here.
Cheers,
Jose R. LopezJanuary 7, 2016 at 1:56 am #560889With all honesty this can continue for weeks until we find the real culprit, and that’s neither convenient to you or us. I’d suggest sticking to the fix of adding an extra tag. Another quicker solution could be doing a search (in the DB) and replacing all
av_one_third
withav_one_half
and then modifying the widths with CSS so they resembleav_third_one
.I’ll provide you the SQL query to do the replace on the preview meta field now:
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'av_one_third', 'av_one_half') WHERE meta_key = '_preview_text'
Regards,
Josue- This reply was modified 8 years, 10 months ago by Josue.
January 7, 2016 at 3:28 am #560937I appreciae the help Jossue, I still want to try and get to the bottom of this.
I have tested every php version (default install) from php 5.2 to php 5.6. Everything yields the same result. So I went ahead and tested the exact same install on a completely different server of mine with a default easyapache build of php and had the exact same results.
Can you tell me the exact php version you have installed where you said you tested my code and it worked correctly for you? And if you can provide the php.ini I can replicate your exact same setup, that would allow us to see if the bug is related to my environment or a theme bug since you are still on the fence.
-
AuthorPosts
- The topic ‘Shortcodes not working’ is closed to new replies.