1.2 Released

Discussion in 'News and Announcements' started by renlok, May 21, 2016.

  1. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    david62311 likes this.
  2. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    Not over due renlock it had to be right this time pal.

    Thanks for the post I will download later and have a play
     
    david62311 likes this.
  3. super_st

    super_st Well-Known Member

    Joined:
    Dec 2, 2012
    Messages:
    634
    Likes Received:
    140
    Good to see this released, need to find some time to start working on this again
     
    nay27uk likes this.
  4. david62311

    david62311 Well-Known Member

    Joined:
    Aug 29, 2013
    Messages:
    2,118
    Likes Received:
    236
    Thank you very much Renlok and to all that helped out getting it ready! The 1.2 Webid Project looks like a beauty!
     
    nay27uk likes this.
  5. Dominik

    Dominik New Member

    Joined:
    Dec 28, 2015
    Messages:
    17
    Likes Received:
    1
    I have a question. Why this new "modern" look based on Bootstrap has only two columns? It a big mistake i think, users must search language selector and user login field on bottom of home page. It should be on right side as before (WeBid 1.1.2p with Bootstrap theme). Maybe its a good idea is to have selector of layouts (with 2 or 3 column theme) on admin side of course.
    Best Regards
    You can check differences on buyineurop.com (old style) and codziennosc.org (new 1.2 version).
    Dominik
     
    Last edited: May 21, 2016
    nay27uk likes this.
  6. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    OK the installer gets to 6% and stalls stuck at 6% for last half an hour
     
  7. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    OK it seems that I had entered the wrong Password into the database page of the install hence it stalling at 6%.
    So why does it not check the database connection anymore (like it did in all previous versions of WeBid) before giving you the link for step 2? instead it just loads the the continue to step 2 page and clicking that loads the installer that just gets stuck on 6% if you entered a wrong database password.

    I think that this needs fixing as this will cause a lot of forum posts all saying that they cant install because the installer is stuck at 6%.
    It needs to be like it was in all the older versions of WeBid where after the first page in the install if your database connection settings you entered where wrong then instead of getting the continue to step 2 page you got a message saying that "the installer could not connect to the database with the information entered please go back and try again"
     
    Last edited: May 22, 2016
  8. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    Problems with the TPL on the admin upload logo page was OK when I submitted it to github.

    logoupload.jpg

    EDIT: I have posted a fix for this it can be found BELOW POST #10
     
    Last edited: May 22, 2016
    david62311 likes this.
  9. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    Problems on the manage themes page in admin with the edit theme files and add theme files links aligned all over the place instead of all in one strait line.

    manage themes.jpg

    I will report anything else I find as I go along

    EDIT: I have posted a Fix it can be found BELOW POST #11
     
    Last edited: May 22, 2016
  10. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    Here is the fix for the logo upload page POST #8 ABOVE.

    It seems that someone, or even me I don't know, (don't think it was me because I can't convert stuff to PDO so that must of been done by someone else) anyway my original files had been edited and the header and footer includes where took out of logo_upload.php and included instead in the logo_upload.tpl hence the horrible layout problem you can see in my screenshot above.

    Download and unzip the attached zip file.

    Upload both folders you just unzipped to your WeBid root and choose overwrite if or when you are prompted to.

    Clear the template cache.
     

    Attached Files:

    Last edited: May 22, 2016
  11. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    This is the fix for the admin Manage Theme page POST #9 ABOVE.

    As well as sorting the alignment issue out this also adds a couple of headers to the sections so it is easier for people to understand the theme sections (see Screen Shot Below).

    Also adds 2 new language strings for the new headers I have added these to messages.inc.php under the original NAY language strings around lines 1592 and 1593.

    Download and unzip the attached zip file.

    Upload both folders you just unzipped to your WeBid root and choose overwrite if or when you are prompted to.

    Clear the template cache.

    SCREENSHOT
    themefixed.jpg
     

    Attached Files:

  12. david62311

    david62311 Well-Known Member

    Joined:
    Aug 29, 2013
    Messages:
    2,118
    Likes Received:
    236
    It was stalling on me too at 25% for not hooking up the right database by not putting in the right database or password and it should of been giving me an error. I have seen in another Webid script it echo out errors when I screwed the install and it was telling me what I did wrong.

    So, we have figured out the script installs correctly with the right info connection to the database. It's just a matter of showing the error to pop up.

    In case 2 section of the install/install.php page the displayed errors from previous versions have been removed and are not in the 1.2 version.
    Change:
    PHP:
        case 2:
            
    $siteURL urldecode($_GET['URL']);
            
    $siteEmail $_GET['EMail'];
            include 
    '../includes/config.inc.php';
            include 
    'sql/dump.inc.php';
            
    $queries count($query);
            
    $db->connect($DbHost$DbUser$DbPassword$DbDatabase$DBPrefix);
            
    $from = (isset($_GET['from'])) ? $_GET['from'] : 0;
            
    $fourth floor($queries/4);
            
    $to = (($queries $from) > 50) ? $from 50 $queries;
            echo 
    'Writing to database: ' floor($to $queries 100) . '% Complete<br>';
            for (
    $i $from$i $to$i++)
            {
                
    $db->direct_query($query[$i]);
            }
            
    flush();
    to:
    PHP:
    case 2:
            
    $siteURL urldecode($_GET['URL']);
            
    $siteEmail $_GET['EMail'];
            include 
    '../includes/config.inc.php';
            include 
    'sql/dump.inc.php';
            
    $queries count($query);
            
    $db->connect($DbHost$DbUser$DbPassword$DbDatabase$DBPrefix);
            
    $from = (isset($_GET['from'])) ? $_GET['from'] : 0;
            
    $fourth floor($queries/4);
            
    $to = (($queries $from) > 50) ? $from 50 $queries;
            if (!
    mysql_connect($DbHost$DbUser$DbPassword))
            {
                die(
    '<p>Cannot connect to ' $DbHost '</p>');
            }
            if (!
    mysql_select_db($DbDatabase))
            {
                die(
    '<p>Cannot select database</p>');
            }
            echo 
    'Writing to database: ' floor($to $queries 100) . '% Complete<br>';
            for (
    $i $from$i $to$i++)
            {
                
    $db->direct_query($query[$i]);
            }
            
    flush();
     
    Last edited: May 22, 2016
    nay27uk likes this.
  13. david62311

    david62311 Well-Known Member

    Joined:
    Aug 29, 2013
    Messages:
    2,118
    Likes Received:
    236
    Now that I've left my office and I'm on my phone, I am looking closer at the code. That added code seemed to work but, it probably needs the connect part to be:

    !$db connect-> instead of !mysql_connect in that if else statement as well as changing the select part too.

    I can't run any tests on my phone to see if changing those codes to see if they would work too.
     
    nay27uk likes this.
  14. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    I will try this out tomorrow David I have felt crap for the last few hours, like I am coming down with the flu or something I barley have the energy to type mate. Thanks though it looks promising
     
  15. david62311

    david62311 Well-Known Member

    Joined:
    Aug 29, 2013
    Messages:
    2,118
    Likes Received:
    236
    Feel better nay27uk. I saw it worked fine for an install and it killed the page and showed it could not connect to the database when I typed in the wrong info. That part seems to work on the install.php page but, I just tried to install the Webid 1.2 script at an address that already had a database. I clicked the proceed to install another database and then it started to get stuck in a loop. I am wondering more of the code on the install page is missing. It seems like some of the if else statements from our old script have disappeared. I got that part of the code from an older version but, forgot we changed the way we connect to the database. More checking out will need to be done on the install page. Actually, I think the update issue will be on the install/update.php page or the install/function.php page.
     
  16. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    5,565
    Likes Received:
    544
    I feel a lot better today david must have just been run down or something.
    I will have a delve into the code today see if I can come up with anything.
    It will be interesting to see what renlok says on this though but it deferentially needs to tell the installer that they entered the wrong database details preferably before it even loads the Continue To Step 2 Page
     
  17. Skazka252

    Skazka252 Member

    Joined:
    Jan 17, 2016
    Messages:
    54
    Likes Received:
    6
    Hi there, I just update version and have some issues :
    Interface >> Upload Logo - do not uploading... Maybe there is possibility upload manually?
    the search function does not working...
    Search and Advanced Search ... No items found (any item)Categories do not shows... (Theme Modern file attached)
    Any suggestions?
     

    Attached Files:

  18. Skazka252

    Skazka252 Member

    Joined:
    Jan 17, 2016
    Messages:
    54
    Likes Received:
    6
    When user try log in:

    Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (0)' in /homepages/37/d531001901/htdocs/OhoDeal/includes/functions_global.php:293 Stack trace: #0 /homepages/37/d531001901/htdocs/OhoDeal/includes/functions_global.php(293): DateTimeZone->__construct('0') #1 /homepages/37/d531001901/htdocs/OhoDeal/includes/functions_global.php(309): global_class->getConvertedDateTimeObject(1464004288, '0') #2 /homepages/37/d531001901/htdocs/OhoDeal/common.php(73): global_class->getUserOffset(1464004288, '0') #3 /homepages/37/d531001901/htdocs/OhoDeal/user_menu.php(16): include('/homepages/37/d...') #4 {main} thrown in /homepages/37/d531001901/htdocs/OhoDeal/includes/functions_global.php on line 293
     
  19. Skazka252

    Skazka252 Member

    Joined:
    Jan 17, 2016
    Messages:
    54
    Likes Received:
    6
    how site is not working...
     
  20. Skazka252

    Skazka252 Member

    Joined:
    Jan 17, 2016
    Messages:
    54
    Likes Received:
    6
    // time zones
    function getConvertedDateTimeObject($timestamp, $userTimezone)
    {
    # create server and user timezone objects
    $fromZone = new DateTimeZone('UTC'); // UTC
    $toZone = new DateTimeZone($userTimezone); // Europe/London, or whatever it happens to be

    $time = date('Y-m-d H:i:s', $timestamp);
    $dt = new DateTime($time, $fromZone);
    $dt->setTimezone($toZone);
    return $dt;
    }
     

Share This Page