Want more timely Centmin Mod News Updates?
Become a Member

phpmyadmin.sh Addon

Discussion in 'Add Ons' started by eva2000, May 25, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    I am having that issue with white page and i need to upload from another working installation the files/folders from:

    Code:
    /usr/local/nginx/html/1234_mysqladmin56789/js/dist/
    and
    Code:
    /usr/local/nginx/html/1234_mysqladmin56789/themes/pmahomme/css/
    I think the issue is related to a file on both directories:

    .gitignore

    content:
    Code:
    /*
    !/.gitignore
    If i am not wrong with that file there the git pull is ignoring both folders...

    If that's the case maybe a check and removal of the .gitignore file in the update script will help a lot i think to avoid copying manually over and over the files...

    Thanks

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Check browser devtool console for errors on white blank pages to see if it's CSS or JS missing files as CSS
    Code (Text):
    cat themes/pmahomme/css/.gitignore
    /*.css
    /*.css.map
    

    Code (Text):
    cat js/dist/.gitignore 
    /*
    !/.gitignore
    

    They ignore them but I assume that is because the files don't change so don't get updated. How old is your phpmyadmin.sh based install?

    You can try uninstall and reinstall using updated version

    Code (Text):
    # uninstall existing phpmyadmin install
    /root/tools/phpmyadmin_uninstall.sh
    
    # download phpmyadmin.sh
    cd /usr/local/src/centminmod/addons
    wget --no-check-certificate https://github.com/centminmod/phpmyadmin/raw/master/phpmyadmin.sh -O phpmyadmin.sh
    
    # permissions
    chmod 0700 /usr/local/src/centminmod/addons/phpmyadmin.sh
    
    # install phpmyadmin latest
    ./phpmyadmin.sh install
     
  3. kanran111

    kanran111 New Member

    4
    1
    3
    Jul 13, 2021
    Ratings:
    +3
    Local Time:
    6:50 PM
    now lastest phpmyadmin 5.2 too many bug, so i recommand make a choosen version of phpmyadmin in case the new one make bug.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What bugs and issues you getting?
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Both .css files seems to be in place but there is no containers folder/file ....

    From a clean test installation it seems that is missing from the auto update routine more files and folders :(
     
    Last edited: May 15, 2022
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Replacing from a clean install the folder /node_modules/bootstrap/scss

    didn't fix the issue...
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Strange everytime I try it works fine, so can't reproduce the issue

    phpmyadmin.sh-150522-01.png
     
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    You can see the issue if you run manually the update script:

    /root/tools/phpmyadmin_update.sh

    Sample:
    Code:
    Writing lock file
    Installing dependencies from lock file
    Nothing to install, update or remove
    18 package suggestions were added by new dependencies, use `composer suggest` to see details.
    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    Generating autoload files
    17 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    Error: Can't find stylesheet to import.
       â•·
    13 │ @import "../../../node_modules/bootstrap/scss/containers";
       │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       ╵
      themes/bootstrap/scss/_bootstrap.scss 13:9  @import
      themes/pmahomme/scss/theme.scss 2:9         root stylesheet
    
    Error: Can't find stylesheet to import.
       â•·
    13 │ @import "../../../node_modules/bootstrap/scss/containers";
       │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       ╵
      themes/bootstrap/scss/_bootstrap.scss 13:9  @import
      themes/original/scss/theme.scss 2:9         root stylesheet
    
    Error: Can't find stylesheet to import.
       â•·
    13 │ @import "../../../node_modules/bootstrap/scss/containers";
       │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       ╵
      themes/bootstrap/scss/_bootstrap.scss 13:9  @import
      themes/metro/scss/theme.scss 3:9            @import
      themes/metro/scss/blueeyes-theme.scss 3:9   root stylesheet
    Not sure if that's something:

    18 package suggestions were added by new dependencies, use `composer suggest` to see details.

    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
     
  10. kanran111

    kanran111 New Member

    4
    1
    3
    Jul 13, 2021
    Ratings:
    +3
    Local Time:
    6:50 PM
    i meet issue like post below and fix it already ( after 1 hour ). but i want to say, maybe you just notify user about update phpmyadmin is comming ( like notify update of centmin ) so user will manually run update phpmyadmin or not.

    i meet this issue: i guess due to phpmyadmin 5.2 use bootstrap 5 and yarn or composer update error, so it can't genarate scss file in bootstrap 5, so you need update manually.
    i do did and it work for me, but some feature of phpmyadmin 5.2 still bug ( for my purpose then i remove all of it and install 5.1 ) .
    - first find and acess to your phpmyadmin folder: cd /usr/local/nginx/html
    - run command "ls -l" you will see folder name mysqladmin and random number after or before it ( for me 18211_mysqladmin15077 ) locate it. cd /usr/local/nginx/html/18211_mysqladmin15077
    - install composer :
    Code:
    yum install php-cli php-zip wget unzip -y
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    php composer-setup.php --install-dir=/usr/local/bin --filename=composer
    php -r "unlink('composer-setup.php');"
    
    - second :
    Code:
     composer update --no-dev 
    
    - third you run this :
    Code:
    yarn install --production
    
     
    Last edited: May 15, 2022
  11. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @pamamolf @kanran111 thanks that makes the issue clearer. Will look into it :)

    can you check if your copy of phpmyadmin.sh looks like phpmyadmin/phpmyadmin.sh at master · centminmod/phpmyadmin which is the latest too.

    wonder if it's related to update script's section at
    Code (Text):
    if [ ! -f ${BASEDIR}/${DIRNAME}/themes/pmahomme/css/theme.css ]; then
      yarn install --production
    elif [ -f ${BASEDIR}/${DIRNAME}/themes/pmahomme/css/theme.css ]; then
      yarn run --silent css-compile --quiet --style=compressed
    fi
    
     
  12. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    If that file should be at:

    Code:
    /usr/local/src/centminmod/addons
    I don't have it there....

    Weird as for the installation i did:

    Code:
    cd /usr/local/src/centminmod/addons
    wget --no-check-certificate https://github.com/centminmod/phpmyadmin/raw/master/phpmyadmin.sh -O phpmyadmin.sh
    and i don't remember to delete it for any reason...

    Unless that it should be on another place ... :)

    Or do you mean the:

    Code:
    /root/tools/phpmyadmin_update.sh
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I mean phpmyadmin.sh file so this is correct to update your phpmyadmin.sh using
    Code (Text):
    cd /usr/local/src/centminmod/addons
    wget --no-check-certificate https://github.com/centminmod/phpmyadmin/raw/master/phpmyadmin.sh -O phpmyadmin.sh
    
     
  14. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    /usr/local/src/centminmod/addons/phpmyadmin.sh

    Doesn't exist for me....

    Not sure why as this is the way that i install it....

    Maybe that's cause my issues?

    I thought that the:

    /root/tools/phpmyadmin_update.sh

    was updating independently and not needs any other file.

    Also when running cmupdate that this update file was auto updated too....
     
  15. pamamolf

    pamamolf Premium Member Premium Member

    4,077
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    1:50 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    So is that file needed for updating correctly?

    /usr/local/src/centminmod/addons/phpmyadmin.sh

    maybe the unsent of that file is causing the issue?

    It seems more possible to be the:

    Code:
    if [ ! -f ${BASEDIR}/${DIRNAME}/themes/pmahomme/css/theme.css ]; then
      yarn install --production
    elif [ -f ${BASEDIR}/${DIRNAME}/themes/pmahomme/css/theme.css ]; then
      yarn run --silent css-compile --quiet --style=compressed
    fi
     
  16. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    5:20 PM
    Encountered the same, I just did a reinstall. Any advise why did that happen?
    I get this error
    Code:
    /js/dist/name-conflict-fixes.js" failed (2: No such file or directory)
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,389
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    9:50 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Strange tried again and still haven't reproduced the errors on PHP update script runs.

    For folks with errors when you run the phpmyadmin.sh generated /root/tools/phpmyadmin_update.sh script, there will be a log of the run at ls -lAhrt /root/centminlogs/centminmod_phpmyadmin_update*.log, if you can sensitize and remove sensitive info from a copy of that log, and share it via gist.github.com or pastebin.com so can see the issues.

    You can list by date ascending all the relevant logs with command below
    Code (Text):
    ls -lAhrt /root/centminlogs/centminmod_phpmyadmin_update*
    

    example
    Code (Text):
    ls -lAhrt /root/centminlogs/centminmod_phpmyadmin_update*
    -rw-r--r--. 1 root root 5.3K May 18 19:02 /root/centminlogs/centminmod_phpmyadmin_update-180522-190206.log
    
     
  18. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    12:50 PM
    1.18.x
    10.2.x
    nginx 1.18
    php 7.3.24

    Getting PMA blank page after fresh PMA installation. Here is my log..

    pastebin.com/V8H5J4vJ
     
  19. Rake-GH

    Rake-GH Active Member

    179
    93
    28
    Jul 29, 2019
    USA
    Ratings:
    +144
    Local Time:
    6:50 AM
    default
    default
  20. noly

    noly Member

    106
    16
    18
    Jul 24, 2017
    Germany
    Ratings:
    +28
    Local Time:
    12:50 PM
    1.18.x
    10.2.x
    Thank you! I followed the steps but getting these errors...

    Code:
    [1/5] Validating package.json...
    [2/5] Resolving packages...
    [3/5] Fetching packages...
    info fsevents@2.3.2: The platform "linux" is incompatible with this module.
    info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
    error autoprefixer@10.4.5: The engine "node" is incompatible with this module. Expected version "^10 || ^12 || >=14". Got "13.14.0"
    error Found incompatible module.
    info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.