0.7.0

Discussion in 'Testers' started by renlok, Nov 19, 2008.

  1. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    Well I've not entirely finished what i was planning to do before releasing this as before i release it properly im going to
    - move all the templates into a template system
    - clean up the code so no php E_NOTICE warnings are flagged up when in strict error mode

    blargh
    [Downloads Removed]
     
  2. eben80

    eben80 New Member

    Joined:
    Oct 31, 2008
    Messages:
    9
    Likes Received:
    0
    Getting HTTP 500 error when trying to submit a new item just after the category select stage.
     
  3. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    ahh man thats annoyed i didnt even edit the damn sell page
     
  4. jmorris1161

    jmorris1161 New Member

    Joined:
    Nov 19, 2008
    Messages:
    73
    Likes Received:
    0
    Do you have to do an install? Will it wipe out the previous data in DB?
     
  5. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    no you dont have to install just overwrite the files.
     
  6. wvpdles

    wvpdles New Member

    Joined:
    Nov 22, 2008
    Messages:
    12
    Likes Received:
    0
    Try replacing the following line
    Code:
    			$w_descr = array_filter(explode(" ", str_replace(array("
    ", "\n"), "", $_SESSION["SELL_description"]))),"strtolower");
    with
    Code:
    			$w_descr = array_filter(explode(" ", str_replace(array("
    ", "\n"), "", $_SESSION["SELL_description"])),"strtolower");
    
    there was an extra ) in the line causing the error for me
     
  7. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    oh awesome thanks for finding that.
     
  8. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    ive uploaded the newer version.
     
  9. wvpdles

    wvpdles New Member

    Joined:
    Nov 22, 2008
    Messages:
    12
    Likes Received:
    0
    Re: 0.7.0 [WIP]

    I've installed WeBid to a sub folder, and some links point to the main folder of my domain, causing not found errors when clicked.
    To fix this I've added
    Code:
    ".$SETTINGS['siteurl']."
    to the start of any links

    example in index.php
    replaced
    Code:
    		$cat_url = "./browse.php?id=$cat_id";
    with
    Code:
    	$cat_url = "".$SETTINGS['siteurl']."browse.php?id=$cat_id";
     
  10. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    Re: 0.7.0 [WIP]

    hmm and i guess pages where the config file is loaded with ./includes/config.php dont work either?
    well i guess ill have to go though and fix them all.
     

    Attached Files:

  11. wvpdles

    wvpdles New Member

    Joined:
    Nov 22, 2008
    Messages:
    12
    Likes Received:
    0
    Re: 0.7.0 [WIP]

    The config ones work, it's just seems to be the links.
    I changed the
    Code:
    ./
    to
    Code:
    ../
    but it was hit and miss, depending on if it was a file in a sub folder.
    Code:
     ".$SETTINGS['siteurl']."
    so far works everytime.
     
  12. wvpdles

    wvpdles New Member

    Joined:
    Nov 22, 2008
    Messages:
    12
    Likes Received:
    0
    Re: 0.7.0 [WIP]

    template_viewrelisted_php.html, template_yourauctions_c_php.html, template_yourauctions_sold_php.html and a few others call for $MSG_624, but doesn't display anything. I've added to my messages.inc.php the following.
    Code:
    $MSG_624 = "Auction Title";
     
  13. wvpdles

    wvpdles New Member

    Joined:
    Nov 22, 2008
    Messages:
    12
    Likes Received:
    0
    Re: 0.7.0 [WIP]

    The advanced search (adsearch.php) wasn't showing any categories in the drop box, until I replaced
    Code:
    $result = mysql_query("select * FROM ".$DBPrefix."categories_plain");
    
    with
    Code:
    $result = mysql_query("select * FROM ".$DBPrefix."categories where parent_id='0'");
    
    it was looking in an empty table for the categories.
     
  14. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    Re: 0.7.0 [WIP]

    awesome thanks for finding the bugs and the problem i think with the categories on that page is when you edit the categories it wipes the categories_plain table for some reason but ive edited it so the plain categories are stored in the file with the normal categories so you want get this problem also it means translations will also work on this page now.
     
  15. wvpdles

    wvpdles New Member

    Joined:
    Nov 22, 2008
    Messages:
    12
    Likes Received:
    0
    Re: 0.7.0 [WIP]

    Yeah with a little more testing, I noticed that after manually adding some categories thru phpMyAdmin, when saying in WB admin it wiped them out
     
  16. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    Re: 0.7.0 [WIP]

    yeah if you add categories in phpmyadmin you'll have to also add them in the categories language file or it wont be added correctly.
     
  17. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    Re: 0.7.0 [WIP]

    Ive been looking at different template systems and ive decided to use the PHPBB3 template classes as there released under GNU (http://www.phpbb.com/downloads/license/). Currently I've edited the files so they'll work with WeBid and ill start modifying the templates soon
     

    Attached Files:

  18. jmorris1161

    jmorris1161 New Member

    Joined:
    Nov 19, 2008
    Messages:
    73
    Likes Received:
    0
    Re: 0.7.0 [WIP]

    Ok I have tried to copy over all the files in the old directory, except the install folder, and I get this

    The requested URL /WeBid-v0.6.3/install/install.php was not found on this server.

    If I leave the install directory it tries to install from new. Am I supposed to just copy certain files over the old files to upgrade?
     
  19. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    Re: 0.7.0 [WIP]

    well your sposed to copy all the files across bar the install directory and the includes/data.inc.php file but if you overwrote the data file this what its sposed to look like, just fill in the data
    Code:
    <?php
    $DbHost     = "localhost";
    $DbDatabase = "";
    $DbUser     = "";
    $DbPassword = "";
    $DBPrefix	= "webid_";
    ?>
     
  20. jmorris1161

    jmorris1161 New Member

    Joined:
    Nov 19, 2008
    Messages:
    73
    Likes Received:
    0
    Re: 0.7.0 [WIP]

    Ok, I keep backups so I copied it all except the install dir and that file and it worked.

    However, then all my categories were gone, they were still in the DB but they showed as `` on each line.

    I just went into admin - settings - categories and did a "Process Changes" without adding anything and it brought back the categories.
     

Share This Page