Osclass forums

Support forums => Themes => Bender => Topic started by: Akhim on May 24, 2015, 08:14:18 pm

Title: Listings images not published
Post by: Akhim on May 24, 2015, 08:14:18 pm
I have a Problem, i am using default bender theme. when i publish a new ad, the ad get published without the images. Even when i try to publish from the osclass admin, the images don't appear. If i publish as a user, on hitting publish, the page refreshes to a blank page which if i refresh/reload the ad is replicated the number of times i reload the tab. I basically have to delete them from admin. editing an listing in the admin side to add images doesn't work. Any insights?
Title: Re: Listings images not published
Post by: Aficionado on May 24, 2015, 08:31:13 pm
Question: do images EXIST ? I mean in the Osclass upload folders ? Are they actually uploaded and not show or not uploaded at all ?

Title: Re: Listings images not published
Post by: Akhim on May 24, 2015, 09:04:02 pm
Question: do images EXIST ? I mean in the Osclass upload folders ? Are they actually uploaded and not show or not uploaded at all ?

I have checked the upload folder, and you are right, the images aren't getting uploaded at all despite the 'success' i get during posting.
Title: Re: Listings images not published
Post by: Aficionado on May 24, 2015, 09:14:34 pm
So this is a different problem. Do you have FTP access ? Check with the FTP client the permissions of folders.

Also enable debug mode of osclass.
Title: Re: Listings images not published
Post by: Akhim on May 24, 2015, 09:22:17 pm
So this is a different problem. Do you have FTP access ? Check with the FTP client the permissions of folders.

Also enable debug mode of osclass.

Yes i have ftp access. I have three accounts by the same host, one using twitter, another modern and now this one using bender but the former are ok. Apart from not publish images, i don't know why the page refreshes to a blank page on hitting post and stays that way even if i reload the tab, plus republishes the same listing afresh the number of times i reload the tab. I will enable the debug mode shortly.
Title: Re: Listings images not published
Post by: Aficionado on May 24, 2015, 09:26:10 pm
This could be either a permission problem or a php image module missing or not enabled.

Title: Re: Listings images not published
Post by: Akhim on May 24, 2015, 10:52:05 pm
This could be either a permission problem or a php image module missing or not enabled.

Sorry i took i while, i had to grab something to eat. Anyways' attached find the deebug file. Thank you for your input
Title: Re: Listings images not published
Post by: Akhim on May 24, 2015, 11:03:17 pm
I dont understand, below is the code found on the file ponted out by the debug log.

[24-May-2015 21:23:36 ] PHP Notice:  Undefined index: s_city in /home/xxx/public_html/oc-includes/osclass/helpers/hDefines.php on line 494

$url = str_replace('{ITEM_CITY}', osc_sanitizeString($item['s_city']), $url);

and the other is this;
[24-May-2015 21:23:05] PHP Fatal error:  Call to undefined function imagettfbbox() in /home/xxxx/public_html/oc-includes/osclass/classes/ImageResizer.php on line 337

code:
 private function _calculateBBox($text) {
            $bbox = imagettfbbox(
                20,
                0,
                $this->_font,
                $text
            );



Title: Re: Listings images not published
Post by: Aficionado on May 24, 2015, 11:06:11 pm
PHP Notices are not important at all right now, they don't harm (just a very small slowdown if any).

The FATAL errors i see are from GD Library (function imagettfbbox()). So you have a problem there, try Imagik library if you have. You have a Cpanel ? What lib is enabled, GD or Imagik ?

Also make sure the permissions are ok.

Title: Re: Listings images not published
Post by: Akhim on May 24, 2015, 11:11:42 pm
Yes i have Cpanel,  but donno how to check what library is enabled (dummy me)
Title: Re: Listings images not published
Post by: Aficionado on May 24, 2015, 11:14:38 pm
Yes i have Cpanel,  but donno how to check what library is enabled (dummy me)

Select PHP Version option. All modules are there, enabled or disabled. GD = GD Lib and Imagick is what you need (and also change that in Osclass admin).
Title: Re: Listings images not published
Post by: dev101 on May 24, 2015, 11:41:07 pm
Quote
PHP Notices are not important at all right now, they don't harm (just a very small slowdown if any).

I also thought at first that PHP notices are harmless but over time with more experience learned to take them with most attention, same way or even more so than fatal errors and warnings, because they can hide a much more serious problem which will be reviled later.
Title: Re: Listings images not published
Post by: Akhim on June 13, 2015, 11:18:47 pm
After trying all the suggestions to no avail, i left it alone to work on another project. Today i came back, retried and it worked fine with no problems at all. In short, i still don't know what the issue was.....
Title: Re: Listings images not published
Post by: evanscash on July 31, 2015, 03:55:03 am
Hi.just created a classified website using bender theme but am not able to post photos in the listing.am really in need of seeing that work.kindly help the site www.qualityhousingkenya.com (http://www.qualityhousingkenya.com)
Title: Re: Listings images not published
Post by: SmaRTeY on July 31, 2015, 08:40:11 pm
Most likely hosting issue  :-\

After trying all the suggestions to no avail, i left it alone to work on another project. Today i came back, retried and it worked fine with no problems at all. In short, i still don't know what the issue was.....