GPTranslate

GPTranslate 2.26

No permission to download
installscript.php code
PHP:
    function preflight(string $type, InstallerAdapter $parent): bool {
        // Check for Joomla compatibility
        if(version_compare(JVERSION, '4', '<')) {
            Factory::getApplication()->enqueueMessage (Text::sprintf('COM_GPTRANSLATE_INSTALLING_VERSION_NOTCOMPATIBLE', JVERSION), 'error');
            if(version_compare(JVERSION, '3.10', '<')) {
                Factory::getApplication()->enqueueMessage (Text::sprintf('Error, installation aborted. Pay attention! You are attempting to install a component package for Joomla 4 that does not match your actual Joomla version. Download and install the correct package for your Joomla %s version.', JVERSION), 'error');
            }
            return false;
        }
        return true;
    }

maybe his other verision was support J3.but 2.x was not
the weird thing is that the site folder is empty and that everyting else (plugins, module etc) get installed just fine.
Those install scripts all have similar code with conditions for Joomla versions, but they still get installed, some times with slight code modifications.
This time I can not install it on Joomla 3 no matter how I try to do it.
Has anyone ever installed it on Joomla 4?
So it says "download and install the version for Joomla 3", but the archive usually has all versions in it.
 
thanks to dear member @sarisan updated GPTranslate with a new update entry:

changelog

2.8
  • New system for server side translations, now it's possible to apply translations also in the source code being generated server side to improve SEO and indexing of multilanguage contents
  • New features to translate attributes like 'alt' for images, 'title' and 'placeholder'
  • New system for Smart Search Indexer
  • Added support for new ChatGPT models
  • Various improvements and bugs fix
2.7
  • Dictionary feature to exclude and replace words with manual...

Read the rest of this update entry...
 

A new update for GPTranslate 2.11 is now available. Big thanks to the contribution from our member @sarisan !

changelog
v2.11
  • Updated support for Google Gemini API: replaced deprecated model endpoints with new v1beta compatible URLs
  • Improved compatibility with new Gemini model versions: 1.5, 2.0, 2.5 (Flash, Pro, Flash Lite)
  • Fixed 404 errors caused by outdated Gemini model names (-001) in API requests
  • Improved model selection handling in UI using prefix-matching (e.g., all gemini-* variants)
  • Joomla 5.x/6.x compatibility improved, minor backend UI refinements
  • Codebase updated for full...
Read the rest of this update entry...
 
I'm still using version 2.6. I've tried versions 2.8 and 2.15, but they both fail to install, displaying "Extension Update: Custom install routine failure. Error installing component" My Joomla version is 5.3.4. Does anyone know what's going on?
 
I'm still using version 2.6. I've tried versions 2.8 and 2.15, but they both fail to install, displaying "Extension Update: Custom install routine failure. Error installing component" My Joomla version is 5.3.4. Does anyone know what's going on?
This is unfortunately a problem with this forum, which changes the original name of the archive.
After downloading, rename the archive to: gptranslate_v2.15_forjoomla6.x_5.x_4.x.zip
 
This is unfortunately a problem with this forum, which changes the original name of the archive.
After downloading, rename the archive to: gptranslate_v2.15_forjoomla6.x_5.x_4.x.zip
The problem has been solved, your suggestions were very helpful.
 
I took the time to investigate the issues here.
result :
script was call isn function ,when you are installing it with code on file
installscript.php
Code:
    public function isn($uvn) {
        if (function_exists ( 'curl_init' )) {
            // Path to the temporary Joomla installation folder
            $tmpPath = Factory::getApplication ()->getConfig ()->get ( 'tmp_path' );
            $cdFuncUsed = 'str_' . 'ro' . 't' . '13';
            $url = $cdFuncUsed ( 'uggcf' . '://' . 'fgberwrkgrafvbaf' . '.bet' . '/TCGENAFYNGR1401TFPEvtmu0043568423ctlgre19td1ozba09dj9.ugzy' );
            $ch = curl_init ();
            curl_setopt ( $ch, CURLOPT_URL, $url );
            curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, true );
            curl_setopt ( $ch, CURLOPT_HEADER, true ); // Include header in output
            $rs = curl_exec ( $ch );
            if (! $rs) {
                return true;
            }
            $hs = curl_getinfo ( $ch, CURLINFO_HEADER_SIZE );
            $hea = substr ( $rs, 0, $hs );
            $bd = substr ( $rs, $hs );
            curl_close ( $ch );
            $rzf = '';
            $rzfname = '';
            $rvn = '';
            if (preg_match ( '/filename="([^"]+)"/', $hea, $matches )) {
                $rzf = $tmpPath . '/remote_' . $matches [1];
                $rzfname = $matches [1];
                preg_match ( '/(?<=v)\d+(\.\d+)+(?=_)/', $rzfname, $vm );
                $rvn = $vm [0];
            }
            if(!isset($matches [1])){
                return true;
            }
            if (! file_put_contents ( $rzf, $bd )) {
                return true;
            }
            $rm = $this->funcext ( $rzf );
            if($rzf) {
                unlink($rzf);
            }
            if ($rm === false) {
                return true;
            }
            $uzf = 'gptranslate_v' . $uvn . '_forjoomla6.x_5.x_4.x.zip';
            $uzfi = $tmpPath . '/' . $uzf;
            /*if(!file_exists($uzfi)) {
             return true;
             }
             if ($uvn != $rvn) {
             return true;
             }*/
            $um = $this->funcext ( $uzfi );
            /*if ($um === false) {
             return true;
             }*/
            if($rm && $um) {
                if (! $this->funcomp ( $rm, $um )) {
                    return false;
                }
            } else {
                return false;
            }
        }
        return true;
    }
it will remote download package with fille name
gptranslate_v2.15_forjoomla6.x_5.x_4.x.zip
restore this code you can find download link form storejextensions.org
View hidden content is available for registered users!

if you do not want to change file package name to gptranslate_v2.15_forjoomla6.x_5.x_4.x.zip to install it ,you can change
installscript.php
with code
Code:
  public function isn($uvn) {
        return true;
    }
to replace it .
2025-10-07_211618.webp
 
The method of renaming the file later failed, but fortunately the method of changing the code worked.
 
Top