Advertisement:

Author Topic: Listings images not published  (Read 3027 times)

Akhim

  • Newbie
  • *
  • Posts: 34
Listings images not published
« 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?

Aficionado

  • Guest
Re: Listings images not published
« Reply #1 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 ?


Akhim

  • Newbie
  • *
  • Posts: 34
Re: Listings images not published
« Reply #2 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.

Aficionado

  • Guest
Re: Listings images not published
« Reply #3 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.

Akhim

  • Newbie
  • *
  • Posts: 34
Re: Listings images not published
« Reply #4 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.

Aficionado

  • Guest
Re: Listings images not published
« Reply #5 on: May 24, 2015, 09:26:10 pm »
This could be either a permission problem or a php image module missing or not enabled.


Akhim

  • Newbie
  • *
  • Posts: 34
Re: Listings images not published
« Reply #6 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

Akhim

  • Newbie
  • *
  • Posts: 34
Re: Listings images not published
« Reply #7 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
            );




Aficionado

  • Guest
Re: Listings images not published
« Reply #8 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.


Akhim

  • Newbie
  • *
  • Posts: 34
Re: Listings images not published
« Reply #9 on: May 24, 2015, 11:11:42 pm »
Yes i have Cpanel,  but donno how to check what library is enabled (dummy me)

Aficionado

  • Guest
Re: Listings images not published
« Reply #10 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).

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Listings images not published
« Reply #11 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.
« Last Edit: May 24, 2015, 11:43:57 pm by dev101 »

Akhim

  • Newbie
  • *
  • Posts: 34
Re: Listings images not published
« Reply #12 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.....

evanscash

  • Newbie
  • *
  • Posts: 3
Re: Listings images not published
« Reply #13 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

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Listings images not published
« Reply #14 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.....