GENERAL | THEMES | INSTALLATION | EMAIL | ERRORS-DEBUG | MODS

FAQS for 1.7.0.x

Note: Terms used in Admin are defined as  True = Enabled,  False = Disabled.

__________________________

GENERAL

Q. How I do remove Google Adsense ads?

A. Go to include/config.php open the file and remove the code in “define(‘ADSENSE’,'pub-9818256176049741′);”.

Adsense Enabled

Then leave it blank and you are done.

Adsense Diabled

Q. Why do I get a “There is a problem with your post” error ?

A. You can only post raw text and limited HTML tags to your Ad Description Editor box. If you post advance code you will receive this error. This limitation is required for security reasons.

__________________________

THEMES

Q. How do I change to a different theme?

A. There are 2 ways to change theme display; you can use Administrator or make change directly in /includes/config.php file.

1. Changing theme directly in /includes/config.php

Go to include/config.php open the file and change “define(‘DEFAULT_THEME’, ‘name_of_theme_you_want’);”

Original Theme OC

In the image above we see the original theme ‘minimalistic’, let’s change it to ‘anunciamex’ theme.

Changed Theme OC

2. Changing theme using Administator:

Login to Administrator; click Settings; click Look and Fellselect Defualt Theme dropdown; select new theme; click Save

Selecting New Theme 1.7.0.x

__________________________

INSTALLATION

Q. What do the install pages look like ?

A. Here are screen shots. Your parameters entered will differ.

Welcome
Welcome

Requirements
Requirements

Path Settings
Path Settings

Database
Database

Basic Configuration
Basic Configuration

Review & Install
Review & Install

Installed
Installed

Q. How do I install Open Classifieds on my computer?

A. If you are using windows you can install a kind of WAMP (Windows Apache MySQL PHP PERL) server on you computer. You might try http://www.apachefriends.org.

__________________________

EMAIL

Q. I’m getting the following error ‘Mailer Error: SMTP Error: Could not connect to SMTP host.’ why?

A. You need to edit update your Mail Server Configuration in Admin.the file common.php locate inside the folder /includes/  Please use the image below as reference.

Configure SMTP Mail Settings

Configure SMTP Mail Settings

Q. I still can not connect to SMTP, Why ?

A. You can try and set Mail Host Name = localhost

Q. I use 1&1 hosting for my OC site  and I am getting  a STMP email error, what’s wrong ?

A. 1&1 hosting requires a Send Mail Setting Change in /includes/common.php for OC to send emails properly.

  1. Open file /includes/common.php
  2. Locate Line 243 (ver. 1.7.0.1)
  3. Change this:  —>   $mail->IsSMTP();
  4. to this: —> $mail->isSendMail();
  5. Login to Admin –> Settings –> Mail Server –> GMAIL = True
  6. Enter your GMail username (email address) and password.
  7. Click “Save”

Your emails should now work for your 1&1 hosted site.


Q. Why are there email errors on Godaddy.com ?

A. Godaddy.com does not support port 465 which is used by gMail servers (if using gMail).

ALSO See MODS FAQs for a Godaddy.com for a user work around. MODS

__________________________

ERRORS – DEBUG

Q. How can I troubleshoot a problem with Open Classified?

A.  You need to comment the line #9 and set init_set in line #10 to on.

Error Display Disable

Error Display Enable
Error Display Enable

Q. After installation I’m getting an error 404 for any page creation, why?

A. You have friendly url on but you don’t have the proper access in .htaccess file.  Alternatively, you can go to include/config.php  open the file and turn off friendly url.

Q. How do I Regenerate  /site_root/.htaccess file . (To assist in site diagnostics).

A. You can manually regenerate the .htaccess file by changing the language in the Admin > Settings to another listed language and save changes. Then switch back to the original language and once again save changes. This will regenerate the .httacess file.

Please Note: Friendly URL’s have to be set True (Enabled) for OC Classifieds to use the .htaccess rules.

Q. Why did I get a “Page not found” after I installed OC ?

Most of the time, it is happening due to a misconfiguration in you .htaccess file.

Just replace the 1st line and 6th line folder name you to match your OC installation path.

if you installed, for example, OC to http://www.aaa.com/classifieds (classifieds directory).

Modify the 1st line and 6th line in your OC .htacess file to include the /classifieds directory.

Should look like this and this will fix your page not found error too.

(Contents of OC .htacess file follows – Only first 6 lines are shown.)

ErrorDocument 404 /classifieds/content/404.php

Options All -Indexes

<IfModule mod_rewrite.c>

RewriteEngine on

Options +FollowSymlinks

RewriteBase /classifieds

Q. Should I use a trailing / at the end of my site path or URL ?

A. Below is the correct usage of trailing / (slash)  in Admin Control Panel. This is [CODE IN CONFIG.PHP]

DO NOT Use a trailing / on these settings:

- Site URL [SITE_URL]

- Site Full Path [SITE_ROOT]

USE a tailing / on these settings:

- Image Folder [IMG_UPLOAD]

- Image Full Path [IMG_UPLOAD_DIR]

- Cache File Path [CACHE_DATA_FILE]

__________________________

MODS

Q. How do I add a new content page such as about.php to OC Classifieds ?

A. In the source files you will find the /content/privacy.php file.

1. Rename privacy.php to about.php (if you are creating an about page).

2. Edit the contents of your new page (in this eample it is about.php).

3. Upload the about.php to the /content/ directory of your OC installation.

4. Place a link in your theme header.php and/or footer.php  files to the new page. (You can cut/paste other links and change link to your new file. )

Q. How do I  fix email errors on Godaddy.com ?

(Mika: Fourm Member, gets Credit for this fix)

A. You can try the following /includes/common.php file modification to fix email errors on  Godaddy.com

NOTE:  SITE_NAME in new code below will include Your OC Classsified Site Name or you can change this to anything you want.

Remember to include the  ’    ‘;  or it  will not work !

FILE (Ver. 1.6.4)  –> /includes/common.php

Line Number:  163  (function sendEmailComplete)

function sendEmailComplete($to,$subject,$body,$reply,$replyName){//send email using smtp from gmail

$mail = new PHPMailer();

$mail->IsSMTP();

//Insert this below new code here

$mail->Host = ‘relay-hosting.secureserver.net’; //Godaddy.com hosting

$mail->Host = ‘localhost’; //Use this and test it, on some systems it does work.

$mail->Port = ’25′;//You can also try and set this to port 80 and try it.

$mail->From ‘NOTIFY_EMAIL‘;

$mail->FromName = ‘SITE_NAME‘;

$mail->Subject = ‘$subject’;

$mail->MsgHTML($body);

Godaddy.com SMTP send email error - Work Around
Godaddy.com SMTP send email error – Work Around

________________________________________

Q. Why did my custom define in config.php disappear when I changed settings in Admin ?

A. OC Classifieds is programmed to Re-Write the /includes/config.php and .htaccess files when you save changes made in Admin. In other words, if you add any code directly to these file your new statement will be deleted when the files are recreated.