Error 500 after Adding New Listings

Discussion of company’s product: questions and suggestions, issues and new modules.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Error 500 after Adding New Listings

Postby Utmanzval » 29 Oct 2022, 01:37

Dear All,

Greeting from Islamabad.

I have added some new listings and after that, I have faced two issues. One is the same with everyone which is related to Image Uploading to Listing and the other issue is that some data on front page is disappeared and shows a line Loading Image First.
Screen sot link: https://photos.app.goo.gl/D3eDCHuJ2rBx2scT9

Website Link: https://evergreeninternational.pk/

Please guide me on how to fix this issue.

Regards
Fawad
Utmanzval
Stranger
 
Posts: 4
Joined: 29 Oct 2022, 00:11
Reputation point: 0

Re: Error 500 after Adding New Listings

Postby andipas » 31 Oct 2022, 14:29

You have a problem loading the image. In order to remove the error, you can in the file protected/modules/images/components/CImageHandler.php

Change code
Code: Select all

    
private function checkLoaded()
    {
        if (!
is_resource($this->image) && !$this->image instanceof \GdImage) {
            throw new 
Exception('Load image first');
        }
    }

 


to
Code: Select all

    
private function checkLoaded()
    {
        if (!
is_resource($this->image) && !$this->image instanceof \GdImage) {
             return 
false;
            
//throw new Exception('Load image first');
        
}
    }
 


This will not fix the loading of images, the site will work. To understand what the problem is with uploading images, you need to look at the server error log.
andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1

Re: Error 500 after Adding New Listings

Postby Utmanzval » 11 Nov 2022, 00:35

Thank You for your response and I am really sorry for replying very late. When I change the code you gave so my website is Live now but the issue of image still exist.
Utmanzval
Stranger
 
Posts: 4
Joined: 29 Oct 2022, 00:11
Reputation point: 0

Unsurpassed Сasual Dating - Authentic Ladies

Postby EmmaAmelias98 » 03 May 2024, 12:42

Connect casually with like-minded individuals on the ultimate dating platform.
True Females
Outstanding casual Dating
EmmaAmelias98
Stranger
 
Posts: 4
Joined: 27 Aug 2022, 08:41
Location: Usa
Reputation point: 0


Return to Open Real Estate

Who is online

Users browsing this forum: No registered users and 2 guests

cron