Eredmény: 1 - 4 (4) összesen

Téma: sql

  1. #1
    LeRoy papys logója
    Csatlakozott
    07-05-14
    Hely
    London, United Kingdom, United Kingdom
    Hozzászólás
    1.465
    Thanked 1 Time in 1 Post

    Alapbeállítás sql

    Warning: Invalid argument supplied for foreach() in /html/includes/joomla.php on line 5142

    Warning: Invalid argument supplied for foreach() in /html/includes/joomla.php on line 5169

    Warning: asort() expects parameter 1 to be array, string given in /html/includes/joomla.php on line 5182

    MA DB function failed with error number 2006
    MySQL server has gone away SQL=SELECT id, title, module, position, content, showtitle, params FROM exp_modules AS m WHERE m.published = 1 AND m.position = 'header' AND m.client_id = 1 ORDER BY m.ordering
    SQL =

    SELECT id, title, module, position, content, showtitle, params
    FROM exp_modules AS m
    WHERE m.published = 1
    AND m.position = 'header'
    AND m.client_id = 1
    ORDER BY m.ordering
    le tudja ezt fordítani valaki nekem?

    a bbclone-t (stat) nem tudom feltelepíteni újonnan.

    egy másik meglévő weblapot áttelepítettem ua. a szerverre, abban már benne volt és az működik szó nélkül.



  2. #2
    LeRoy papys logója
    Csatlakozott
    07-05-14
    Hely
    London, United Kingdom, United Kingdom
    Hozzászólás
    1.465
    Thanked 1 Time in 1 Post

    Alapbeállítás re: sql

    ilyen nehéz vagy nem írtam róla eleget?

    Bidu ez a hibaüzenet, számítok rád



  3. #3
    Új tag
    Csatlakozott
    08-01-14
    Hozzászólás
    18
    Begyűjtött 0 köszönetet
    0 hozzászólásával

    Alapbeállítás re: sql

    megprobalhatom, de igazabol jo volna tudni mi szerepel a joomla.php
    5142
    5169
    5182
    soraiban, mert igy csak annyit latok, hogy egy (tomb tipusu) erteket var...

    udv.: -gyuri-



  4. #4
    LeRoy papys logója
    Csatlakozott
    07-05-14
    Hely
    London, United Kingdom, United Kingdom
    Hozzászólás
    1.465
    Thanked 1 Time in 1 Post

    Alapbeállítás re: sql

    sorrendben:

    Kód:
    function ImageCheck( $file, $directory='/images/M_images/', $param=NULL, $param_directory='/images/M_images/', $alt=NULL, $name=NULL, $type=1, $align='middle', $title=NULL, $admin=NULL ) {
            global $mosConfig_absolute_path, $mosConfig_live_site, $mainframe;
    Kód:
    // outputs only path to image
                    $image = $mosConfig_live_site. $directory . $file;
    Kód:
    /**
        * Checks to see if an image exists in the current templates image directory
         * if it does it loads this image.  Otherwise the default image is loaded.
        * Also can be used in conjunction with the menulist param to create the chosen image
        * load the default or use no image
        */
        function ImageCheckAdmin( $file, $directory='/administrator/images/', $param=NULL, $param_directory='/administrator/images/', $alt=NULL, $name=NULL, $type=1, $align='middle', $title=NULL ) {
    /*
            global $mosConfig_absolute_path, $mosConfig_live_site, $mainframe;
    elejétől végéig:
    Kód:
    /**
        * Checks to see if an image exists in the current templates image directory
         * if it does it loads this image.  Otherwise the default image is loaded.
        * Also can be used in conjunction with the menulist param to create the chosen image
        * load the default or use no image
        */
        function ImageCheck( $file, $directory='/images/M_images/', $param=NULL, $param_directory='/images/M_images/', $alt=NULL, $name=NULL, $type=1, $align='middle', $title=NULL, $admin=NULL ) {
            global $mosConfig_absolute_path, $mosConfig_live_site, $mainframe;
    
            $cur_template = $mainframe->getTemplate();
    
            $name     = ( $name     ? ' name="'. $name .'"'     : '' );
            $title     = ( $title     ? ' title="'. $title .'"'     : '' );
            $alt     = ( $alt     ? ' alt="'. $alt .'"'         : ' alt=""' );
            $align     = ( $align     ? ' align="'. $align .'"'     : '' );
    
            // change directory path from frontend or backend
            if ($admin) {
                $path     = '/administrator/templates/'. $cur_template .'/images/';
            } else {
                $path     = '/templates/'. $cur_template .'/images/';
            }
    
            if ( $param ) {
                $image = $mosConfig_live_site. $param_directory . $param;
                if ( $type ) {
                    $image = '<img src="'. $image .'" '. $alt . $name . $align .' border="0" />';
                }
            } else if ( $param == -1 ) {
                $image = '';
            } else {
                if ( file_exists( $mosConfig_absolute_path . $path . $file ) ) {
                    $image = $mosConfig_live_site . $path . $file;
                } else {
                    // outputs only path to image
                    $image = $mosConfig_live_site. $directory . $file;
                }
    
                // outputs actual html <img> tag
                if ( $type ) {
                    $image = '<img src="'. $image .'" '. $alt . $name . $title . $align .' border="0" />';
                }
            }
    
            return $image;
        }
    
        /**
        * Checks to see if an image exists in the current templates image directory
         * if it does it loads this image.  Otherwise the default image is loaded.
        * Also can be used in conjunction with the menulist param to create the chosen image
        * load the default or use no image
        */
        function ImageCheckAdmin( $file, $directory='/administrator/images/', $param=NULL, $param_directory='/administrator/images/', $alt=NULL, $name=NULL, $type=1, $align='middle', $title=NULL ) {
    /*
            global $mosConfig_absolute_path, $mosConfig_live_site, $mainframe;
    
            $cur_template = $mainframe->getTemplate();
    
            $name     = ( $name     ? ' name="'. $name .'"'     : '' );
            $title     = ( $title     ? ' title="'. $title .'"'     : '' );
            $alt     = ( $alt     ? ' alt="'. $alt .'"'         : ' alt=""' );
            $align     = ( $align     ? ' align="'. $align .'"'     : '' );
    
            $path     = '/administrator/templates/'. $cur_template .'/images/';
    
            if ( $param ) {
                $image = $mosConfig_live_site. $param_directory . $param;
                if ( $type ) {
                    $image = '<img src="'. $image .'" '. $alt . $name . $align .' border="0" />';
                }
            } else if ( $param == -1 ) {
                $image = '';
            } else {
                if ( file_exists( $mosConfig_absolute_path . $path . $file ) ) {
                    $image = $mosConfig_live_site . $path . $file;
                } else {
                    // outputs only path to image
                    $image = $mosConfig_live_site. $directory . $file;
                }
    
                // outputs actual html <img> tag
                if ( $type ) {
                    $image = '<img src="'. $image .'" '. $alt . $name . $title . $align .' border="0" />';
                }
            }
    */
    Feltelepíti a fájlokat de az adatbázisban nem hoz létre táblákat, még kézzel se sikerült.

    Egy kész oldalamat felmásoltam, amiben már benne van ez a komponens és az simán megy.

    Az új telepítésnél van gondja valamilyen images/média fájlokkal, ill, az útvonalával.



A téma címkéi:

Könyvjelzők

Hozzászólás szabályai

  • Új témákat nem hozhatsz létre
  • Válaszokat nem küldhetsz
  • Fájlokat nem csatolhatsz
  • A hozzászólásaidat nem módosíthatod
  •