ive installed on localhost
ive got main page, sql db, 6 categories, sitemap, cache, htacceess as per this forum.
when i try to post a test ad i get:
'Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs\openclassifieds\new\index.php on line 209'
why? this is original file. i havent touched it !
thanks bazo
which version of php are you running?
are you using apache? IIS?
more details....
Hi,
running all via xampp 1.7 which has:
php 5.3
apache 2.2.12
mysql 5.1.37
phpAdmin 3.2.01
all on winXPpro
openclassifieds DB is showing on sql, everything appears to be there ok.
(although dont know where to look to make sure that //posts is definitely set to ROW_FORMAT=DYNAMIC)
and i think AUTO_INCREMENT=1 is working because the oc_categories table has incremented ok showing my 6 records
The 3 Foreign Key/Constraint seem to agree with ALTER TABLE settings as in sql php ok (idCategory,idPost,idPost=cascade/cascade)
Sorry'bout this but i am a newb goldfish swimming in the atlantic! bazo
IF i can get a good localhost version running faultlessly then i can check why my live version 'www dufftown net/openclassifieds' wont upload picture with ads. Why my cache is 21116850 mins old and wont delete. Why my Sitemap is same old and doesnt auto-renew?
got a lot of learning to do. bazo
Hi chema,i was searching thru the old forum and saw someone having the same problem using XAMPP. i know you dont use windows so i guess i am on my own with this and you may as well DELETE this thread.
thanks bazo
WEll I'll not delete anything of course, we will try to help you out.
Why you don't try to install the script here http://www.000webhost.com/238546.html for example?
regards
I have same problem when using xampp in window. I want edit theme on locahost, how can i solve this problem?
Tks/Rgds
Sorry newmen I didnt understand your question, you need to edit your theme?
I have same problem with bazo. Install on the localhost and add new post i get the error
'Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs\openclassifieds\new\index.php on line 209'
I want to test and edit theme on the localhost first.
Hi New Mem,I even updated XAMPP to latest version 1.7.3 which is definitely PHP 5.3 and still picks up on that last Spammer statement and thinks it is a T_ statement even tho it it inside a /?php>. Is just a wierd xampp thing!
Cant see why! maybe follow Chema advise and try it live on above 000webhost site cos it doesnt do the line 209 thing when is live. Good Luck.
Anyway i'm still struggling with my own problems getting OC 1.6 to put photos up with posts; and cache and sitemap not regenerating self. Now 21117000 old !?!?
bazo
p.s. dont forget to use 'search&replace' throughout site for all references to "localhost" : change to your site-name, except dont touch any 'classPHPmailer php' or 'classSMTP php' settings.
bazo
This error will show on hosts which have:
short_open_tag = Off
because there are some remaining short tags in the following files:
new/index.php (line 158)
includes/classes/resize.php (line 1)
item.php (line 58)
manage/index.php (lines 225, 226, 246)
also in:
item.php (lines 71, 118)
thanks, can you bring an example of what's wrong?
I want to fix it but I don't see the problem :S
regards
Hi,
This issue isn't related to localhost. I guess theses are just short open tags that were missed (see changelog v1.1), so on servers that have php configured with
short_open_tag = Off
the enclosed brace (on the lines noted above) is ignored, resulting in the script parsing error. Easy to fix, of course, replacing them with long open tags, or change the default setting in php.ini.
Regards,
Andrew
Ok, I think I understand, I'm actually kind of newbie still in PHP if you compare to other people.
Then instead of:
<?php if ($itemPhone!=""){?><b><?php echo T_CONTACT_PHONE;?>:</b> <?php echo encode_str($itemPhone); ?><?}?>
should be:
<?php
if ($itemPhone!="")
{?>
<b><?php echo T_CONTACT_PHONE;?>:</b> <?php echo encode_str($itemPhone);
}?>
I guess, no?
Si, en este caso no hace falta el ultimo <?}?>, solo el }, aunque claro, puedes cambiarlo a <?php } ?>
vale ahora veo el fallo! me pongo a ello, gracias
En /manage/index.php no veo lo que está mal me dices lineas 225 y 226 ?
2 más <?
<?if($row['type']==TYPE_OFFER)echo 'selected="selected"';?>
<?if($row['type']==TYPE_NEED)echo 'selected="selected"';?>
This topic has been closed to new replies.