Report this

What is the reason for this report?

Why I'm getting thumbnails black in PHP CodeIgniter-3

Posted on March 3, 2021

I’m working on PHP CodeIgniter Script from Envato Market.

I have deployed it successfully on the AWS Apache2 server but now I’m facing 3 errors:

  1. Item 3Thumbnails turns black, | SS: https://prnt.sc/109awhs
  2. Google Map API is not working, | SS: https://prnt.sc/109aw2y
  3. The empty Setting section in the admin panel ( it was working fine 2 days before ) SS: https://prnt.sc/109avfz

[My error log is empty. Actually, I’m a beginner trying to analyze the PHP script from the Envato market, so I don’t know which code I have to show, and No, I haven’t done anything to it. website: serviceongate dot com]

Any Idea, How to solve these issues?

Should I disable image manipulation??

Thanks in advance.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

What I could suggest here is enabling the CodeIgniter’s debug mode so that you could see the actual problem rather than the generic Something went wrong message.

This will give more information and point you in the right direction. Also, feel free to share the actual error here so that I could try to advise you further.

Also what I could suspect here is that you are missing a PHP module like GD which you could isntall with the following command:

sudo apt install php-gd

Regards, Bobby

1. Thumbnails Turning Black

  • Potential Causes:

    • Image manipulation issues.
    • Missing or incompatible PHP GD or Imagick extension.
    • Incorrect file permissions for the images folder.
  • Steps to Fix:

    1. Check Extensions:
      • Ensure that PHP GD or Imagick extension is installed and enabled.
      • Run php -m | grep -i gd or php -m | grep -i imagick to verify.
      • If missing, install with:
sudo apt install php-gd
sudo systemctl restart apache2

Or for Imagick:

sudo apt install php-imagick
sudo systemctl restart apache2
  1. Check File Permissions:
  • Ensure the images folder has write permissions:
chmod -R 775 /path/to/your/images/folder
chown -R www-data:www-data /path/to/your/images/folder

Disable Image Manipulation:

  • If the issue persists, try disabling image manipulation in the script settings. Check the documentation for the Envato script to locate the related configuration.

2. Google Maps API Not Working

  • Potential Causes:

    • API key restrictions.
    • Billing not enabled on your Google Cloud account.
    • Missing or incorrect API key in the script configuration.
  • Steps to Fix:

    1. Verify API Key:
      • Check if the Google Maps API key is set correctly in the script.
      • Ensure the API key is enabled for the required APIs (e.g., Maps JavaScript API).
      • Visit the Google Cloud Console to verify.
    2. Check Referrer Restrictions:
      • If you have restricted the API key, ensure the domain serviceongate.com is added as an allowed referrer.
      • Go to API & Services > Credentials in Google Cloud Console to check.
    3. Enable Billing:
      • Make sure billing is enabled on your Google Cloud account. Many APIs require billing to be active.
    4. Error Logs:
      • Check the browser’s developer console (F12) to see if any errors are logged in the JavaScript console.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.