Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1231378

    Hello,

    After updating a client’s site this week to the latest versions of WP, Enfold and plugins, there is an issue with single portfolio pages not showing correctly on the website. When you click a single portfolio (see example) it says “There has been a critical error on your website. Learn more about debugging in WordPress.”

    I tried to find the cause, but couldn’t find anything.

    Please advise what is going wrong and how to solve it.

    Thanks & regards,
    Monique

    #1231605

    Hey Monique,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1231655

    Thank you Rikard.

    Please find login detail below.

    Regards,
    Monique

    • This reply was modified 4 years, 5 months ago by Monique.
    #1231972

    Hi,

    Thanks for that. What happens if you disable all plugins on the site? Also please upgrade the rights for the user you sent us, as we can’t see everything on the backend otherwise.

    Best regards,
    Rikard

    #1232028

    Hi Rikard,

    Sorry, my mistake, you should be able to see everything now.

    I deactivated all plugins. First all together at once and thereafter one by one. Because I noticed a small difference in the page when I activated and de-activated Really Simple SSL plugin, I contacted them. They confirmed me the critical error is being caused by the portfolio of the theme.

    With all other plugins I didn’t see any difference.

    Please let me know.

    Regards,
    Monique

    #1232244

    Hi Monique,

    They confirmed me the critical error is being caused by the portfolio of the theme.

    That’s great, did they provide you with any specifics?

    I can’t reproduce this problem on a local installation, and we have had no other customers reporting this either. That leads me to think that it’s local to your site. I wanted to check what is in your child theme but the editor is not active, could you activate that please?

    Also, are we allowed to deactivate plugin for testing purposes?

    Best regards,
    Rikard

    #1232248

    Hi Rikard,

    Sorry, I didn’t mean to annoy you!

    It is very strange that you don’t see the problem on a local installation. Both my client and I see this error from different locations, pc’s and devices.

    I am not sure if I understand exactly what you mean by ” the editor is not active”. You should have full access to all there is in the installation, including the Enfold Child settings. The portfolio within WordPress dashboard is called “werken”, if that helps.

    Yes, you can test by deactivating plugins. I will tell my client to not work on the website until we hear from you.

    Thanks & regards,
    Monique

    #1232523

    Hi Monique,

    Thanks for the update. What I mean by editor is under Appearance->Editor, that is not active on your installation. Please activate it, or share FTP login details in private so that we can access your child theme that way.

    I get the same problem on my end, so I’m not questioning weather or not it’s happening. I’m saying that by default, this does not happen using the version of the theme you are running. That means it must be something local to your site, and we would need to check what could be causing it. You could try activating the parent theme, if the problem goes away then it’s likely caused by something in your child theme.

    Best regards,
    Rikard

    #1232553

    Hi Rikard,

    Ok, I wasn’t aware of this but iThemes Security obviously blocked the editor. You now have access to the editor.

    If you prefere I can still give you ftp login details.

    For now I will leave it to you, but just for my information: can I switch between parent theme and child theme without loosing all settings? I did that once in the beginning that I worked with Enfold and had to start all over again. I know I can make a backup of the Child Theme’s settings but at the time I did that, that wasn’t the case I believe. That’s why I never dared to do that again…

    Looking forward to your further info.

    Best regards,
    Monique

    #1232892

    Hi Monique,

    Thanks for the update. I removed everything from your the functions.php file in your child theme, and the portfolio page worked as it should after that, so something in your child theme is causing the problem. Please try to remove all customisations, then add them back one by one to see which function is causing this to happen. I added back all the code again.

    Best regards,
    Rikard

    #1232900

    Hi Rikard,

    Thank you for your reply. I followed your suggestion and it seems that a portfolio related function (not really surprising uh…) causes the issue.

    Each portfolio has a section at the bottom showing other portfolio items. To exclude the current portfolio I added a piece of code that must have come from your support:

    // Portfolio Grid Single Query - actieve portfolio item uitsluiten 
    add_filter( 'avia_post_grid_query', 'avia_portfolio_query', 10, 2);
    function avia_portfolio_query( $query, $params ) {
    	if(is_single()) {
    		$id = get_the_ID();
    		if(avia_post_grid::$grid == 0) $query['post__not_in'] = array($id);
    	}
        return $query;	
    }
    

    Obviously that is quite a long time ago and perhaps the code for portfolio in Enfold has changed in the meantime so that this functional code doesn’t do the job any longer? Can you help me to update this code or provide me with new code that will work to achieve this?

    Because I have other customers using portfolio as well and they most probably are using the same code I am sure I will encounter this issue at more websites once I am going to update them.

    Best regards,
    Monique

    #1233140

    Hi Monique,

    Great, I’m glad that you found the culprit. I don’t have an updated solution for that unfortunately, but I’ll ask the rest of the team for help. Please reply to this thread so that it gets added back to our support queue.

    Best regards,
    Rikard

    #1233224

    Thanks Rikard for your help so far!

    I would be pleased if it is possible to receive new code to exclude the current portfolio from “more portfolio / also interesting”.

    Best regards,
    Monique

    #1234089

    Hi,

    Sorry for the delay. You need to replace this line:

    if(avia_post_grid::$grid == 0) $query['post__not_in'] = array($id);
    

    .. with:

    $query['post__not_in'] = array($id);
    

    We don’t need that condition or check in this case.

    Best regards,
    Ismael

    #1248228

    Hi Ismael,

    Now I have a delay as well ;-)

    Thanks for the info and your help!

    Can you flag this topic as solved please?

    Best regards,
    Monique

    #1248305

    Hi Monique,

    We’re glad to hear that :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘critical error on single portfolio pages after updates’ is closed to new replies.