plugins:start

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
plugins:start [2026/04/05 18:42] – [EPUB] webmasterplugins:start [2026/06/29 13:37] (actual) – [EPUB] webmaster
Línea 1: Línea 1:
 ====== FIXING PLUGINS ====== ====== FIXING PLUGINS ======
 ===== EPUB ===== ===== EPUB =====
-  Trying to access array offset on value of type null in [RUTA]\lib\plugins\epub\action.php on line 104+https://github.com/Jack28/epub
 +Se modifica la cabecera {{ :plugins:202606291104action.tgz |}}. Cambiando este action por el que viene, el plugin deja de dar errores. Si se mantiene este mensaje es que fue funcional porque no viene a cambiarlo (2026.06.29) 
 +  b13a8ea6766ae91d5f62ceb3003348781ec51bd03a0b4863ea976af726d34fd72e31ab50431fac0fcc4b90c5017673bc349290735396737d1b86f78370662b83 *202606291104action.tgz
  
-  * {{ :plugins:action.tgz |}}. Se realizan dos correcciones en el archivo. Se modfica la función prevent_cache y se comenta la línea 19 ''%%$controller...%%''.+===== PDFJS ===== 
 +<code> 
 +WarningUndefined array key 1 in F:\xampp\0cms\dkCT\lib\plugins\pdfjs\syntax.php on line 66
  
-  e3eaf647ddc34d31d2d643408a9b2f170a56602ab575e7720e6cb5e71aae1a801aa95530e9a11cb2c2dead8c580befd6e31532a3465f63be9a9da38f892c0529 *action.tgz+Warning: Undefined array key 1 in F:\xampp\0cms\dkCT\lib\plugins\pdfjs\syntax.php on line 78 
 +</code>
  
 +<code php sintax.php>
 +// Código de la línea 66 en adelante (Corregido)
 +    $display_parts = explode('?disp=', $link, 2);
 +    list($idzoom, $display) = $display_parts + [0 => null, 1 => null];
 +    
 +    $display = trim($display);
 +    //get the display
 +    if($display) {
 +        if(in_array($display, $this->display_opts)) {
 +            $opts['display'] = $display;
 +        } else {
 +            msg('pdfjs: unknown display: ' . $display, -1);
 +        }
 +    }
  
 +    //get the zoom (Línea 78 corregida)
 +    $zoom_parts = explode('?', $idzoom, 2);
 +    list($id, $zoom) = $zoom_parts + [0 => null, 1 => null];
 +    
 +    if($zoom) {
 +        if(in_array($zoom, $this->zoom_opts)) {
 +            $opts['zoom'] = $zoom;
 +        } else {
 +            msg('pdfjs: unknown zoom: ' . $zoom, -1);
 +        }
 +    }
 +</code>
  • plugins/start.1775414533.txt.gz
  • Última modificación: 2026/04/05 18:42
  • por webmaster