Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

SOLVED !!! Fatal error: Class 'Folder' not found

  • Yu Nakamura
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 weeks ago - 10 years 2 weeks ago #87198 by Yu Nakamura
on using OSProperty ver. 3.0.1, I met an error, saying:
Code:
Fatal error: Class 'Folder' not found in [my_public_html]/components/com_osproperty/classes/listing.php on line 4263
At the line 4263,
Code:
Folder::exists(...
should be
Code:
JFolder::exists(...
So do the line 4266, 4269.
Last edit: 10 years 2 weeks ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #87199 by Mr. Dam
Replied by Mr. Dam on topic Fatal error: Class 'Folder' not found
Hi,
To solve the issue, you can follow these steps
1. Open file:

root > components > com_osproperty > classes > listing.php

2. Find:
Code:
if(! Folder::exists(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id)){ JFolder::create(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id); } if(! Folder::exists(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id.DS."thumb")){ JFolder::create(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id.DS."thumb"); } if(! Folder::exists(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id."medium")){ JFolder::create(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id.DS."medium"); }

and change to
Code:
if(! JFolder::exists(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id)){ JFolder::create(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id); } if(! JFolder::exists(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id.DS."thumb")){ JFolder::create(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id.DS."thumb"); } if(! JFolder::exists(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id."medium")){ JFolder::create(JPATH_ROOT.DS."images".DS."osproperty".DS."properties".DS.$id.DS."medium"); }

Good luck
Dam

Please Log in or Create an account to join the conversation.

  • Yu Nakamura
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 weeks ago #87204 by Yu Nakamura
Replied by Yu Nakamura on topic Fatal error: Class 'Folder' not found
I have already fixed.
My post aimed to report the bug and the fix. :-)
Anyway, thank you.

Please Log in or Create an account to join the conversation.

More
10 years 2 weeks ago #87207 by Mr. Dam
Replied by Mr. Dam on topic Fatal error: Class 'Folder' not found
This issue is also fixed in OS Property 3.0.1 (just released the patch some near days)
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam, Nguyen Phu Quan