[Urgent] BB Is failing on my home page all of a sudden.

Hi BB,

I’m having issues with a client’s installation of their BB site and I’ve never come across anything like it before.

So I develop sites on my server before packaging them up with Duplicator and exporting them to the Live client’s website/server.

This never has any issues. Until now.

So I was going through with the client over the phone for a post-launch ‘training’ session. The site has only been up about a month.

During the training session we created a new menu item link, and I hopped into the BBuilder to demonstrate how to move things around on the home page.

When I hit publish (or dont-save draft I cant remember), the site hung and I got an error.

[an error occurred while processing this directive]

I just assumed it was the server went down & we finished up & all the other pages worked fine.

I’ve tried restoring my database but it still breaks when I visit and try to edit the home page.

Need help with this one.

Hey Jay,

Sorry to hear about the problem. Could you elaborate a bit though? What happens when you visit the homepage? Does it only happen when you try to edit the homepage? Does it happen only on the homepage?

Ben

Hi Ben.

It appears I jumped the gun a little bit with this post as I have done some much more methodical bug-testing to narrow down the issue.

It turn out that it was a row of Callout modules on my home page.

For some reason that row of callout modules was causing all sorts of errors. Memory errors, BB-plugin to not reactivate. The whole page to be blank except the header. The other pages all worked fine, but the home page (or any page I created using the same template) was all buggered up.

I have since deleted the row and touch-wood everything seems to be working. Thank god I had a recent backup file.

Can I send you the template file? It may give you guys a chance to investigate why that row of call out modules became corrupted and why it would create issues when I tried to save it.

Is there a file_upload function here? Or another way to send you the .xml?

Oops 3 posts is a no no - but it’s a different topic. My account isn’t receiving follow up replies via email when my forum posts get a reply. Is that something I need to change? My account was created using an email address I no longer use so even though I’ve changed my email address could it still be using the account name?

Hey Jay,

Go ahead and send the template file to themes [at] fastlinemedia [dot] com. Re the email for follow up replies, be sure to hit the Notify me of follow-up replies via email box when you reply. Or simply hit the Subscribe link on the top right corner of the first post. :slight_smile:

Ben

Cheers Ben, just sent it.

Yeah my subscribe buttons and notification checkboxes are all on. I think it’s still being sent to my old email address which I no longer have access to.

Hey Jay,

I uploaded the template Home Page Final to a page on my local dev, published it, went back to the page builder and it’s still working fine. What kind of errors were you getting? Have you tried getting in touch with your hosting company and see if they could up your memory allocation?

Re the email notifications, you should be able to change your email address under Account > Edit Profile.

Ben

Hi Ben,

Cheers,

Yeah I’m doing some more testing now and trying to re-make the row of 3 images. And the issue is reoccuring if I create a callout with the ‘crop’ setting enabled.

How exactly does BB crop my files? I originally thought it was just a container with overflow:hidden; but upon further inspection it apepars as though its coming from the cache. Are cropped images generated dynamically?

Could this be an issue with file permissions perhaps or somethign like that?

edit: by file permissions I mean php permissions to generate new files via script.
Alternatively - is BB failing to check if the file exists & generate it again?

Hey Jay,

Certain CSS is applied to the images per option on the Crop menu. Do you think you can share temp admin access to the site so we can check? Maybe list down the steps as well to recreate the issue?

Ben

[Content Hidden]

[Content Hidden]

Hey Jay,

I’m getting 500 internal server error when playing around with the crop options. So I tried uploading a new image, same problem. I tried uploading the image on a page without BB, same problem. Lastly, I disabled the BB plugin and uploaded an image on the native WP editor page, got the same problem. The problem’s most likely with your hosting company as we’re not able to upload images in any way. I’d suggest getting in touch with them.

Ben

Cheers, helping to narrow it down at least.
Not sure what it could possibly be though :frowning:

I’ll re-open this ticket if I find anything.

Thanks again,

No worries! Let us know what they say! :slight_smile:

Ben

Hi Ben (Or anyone)

I have investigated this issue once more and have spoken to my hosting server provider.

Basically they had an older/restricted version of PHP enabled on the site which didn’t include ‘gd’ module of php.

This caused image UPLOADS to fail as we experienced.

However, the other part of my issue is the ‘crop’ ability for images with the BB plugin.

I have tried, and failed to show the server guys what is going on so I need your help.

What functions are being called or used with the crop function in BB plugin? And what PHP modules are likely needed to be turned on?

At least I can try go to my server guys with a list of php modules to activate & see if that helps - otherwise I’m looking at a server migration.

Cheers,

Jay

Hey Jay,

I’ve already assigned another member of the team to assist you with your issue.

Ben

Hey Jay! Sorry you’re having trouble. Out of curiosity, is moving the client to a new web host an option? If the current server is unable to handled image uploads, I can only imagine the other issues that pop up due to a poor configuration.

That said, we’re using the WordPress Image Editor class for any image cropping/manipulation. If you peek around in the Photo Modules’s code, you can see where we’re calling this in the _get_editor() method.

Also, here’s a Codex reference for ya: https://codex.wordpress.org/Class_Reference/WP_Image_Editor

You’ll have to dig through there to find out what functions WordPress is using. Again, though, if possible it sounds like switching to a new host will be the easiest way to get everything working properly.

Hope that helps. Let us know if you have any more questions.

Hi Robby, thanks for the reply.

I looked into it and ensured gd and imagick were both enabled and they were.
They have also activated a newer version of php.

I am now able to upload photos at least - and thumbnails are now being generated again, however I am still unable to crop images - but ONLY ON FULL SIZE IMAGES. If the photo is a thumbnail - it works fine >.<

Tranferring the host will be a nightmare so I’m trying my hardest to figure this out if possible.
Any ideas? Is there a wordpress image_size_limit or something to that effect when working with _get_editor() ?

Any ideas?

Jay, well that’s good!

Do you mean crop using WordPress’ image cropping tool or are you still having trouble using the Beaver Builder cropping options?