Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-11-29 10:12:01

mlarino
Member
Registered: 2007-06-29
Posts: 367

Fatal Error | Paid work

Hi,
An old text pattern website I made is having a Fatal Error problem uploading images. We need help to fix this.
This is an image of the issue:
https://www.dropbox.com/s/no9twfd3ucf32ql/fatal-error.png?dl=0

Thanks

Offline

#2 2016-11-29 10:26:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

Re: Fatal Error | Paid work

mlarino wrote #303081:

An old text pattern website

Very old version :-o

a Fatal Error problem uploading images

What plugin are you using to upload images on the Write panel? That’s likely the culprit. Or the fact you’re uploading huge images that exhaust PHP’s memory limit when it tries to create thumbnails from the JPG.

There are a few ways to approach this, but we’d need more info first:

  • High Diagnostics.
  • Which plugin you’re using on the Write panel.
  • Roughly what file size image(s) are you uploading that triggers the error?

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2016-11-29 10:56:00

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: Fatal Error | Paid work

We are using Textpattern · 4.2.0
The image plugin is lam_image_uploader 0.6c
I though the problem was the image size, but they are uploading 600kb images

Diagnostics:
Versión de Textpattern: 4.2.0 (r3275)
Última actualización: 2010-01-25 08:24:40/2015-08-06 09:20:05
Document root: /home/personales/adiaz001/web01
$path_to_site: /home/personales/adiaz001/web01
Ruta a Textpattern: /home/personales/adiaz001/web01/textpattern
Modo de enlace permanente: title_only
open_basedir: /home/personales:/bin:/tmp:/usr/lib64/php:/usr/share/pear
Ruta al directorio temporal: home/personales/adiaz001/web01/textpattern/tmp
URL del sitio: asediaz.com
Versión de PHP: 5.3.3
Biblioteca de imagen GD: bundled (2.0.34 compatible); formatos soportados: GIF, JPG, PNG.
Servidor TZ: Europe/Madrid
Tiempo local del servidor: 2016-11-29 11:53:24
¿Activar horario de verano?: 0
¿Ajustar automáticamente la preferencia ‘Horario de verano’?: 0
Zona Horaria: Europe/Madrid (3600)
MySQL: 5.1.73-log
Local: es_ES.UTF-8
Servidor: Apache
Versión de Apache:
PHP Server API: apache2handler
Cabeceras RFC 2616:
Sistema operativo del servidor: Linux 2.6.32-504.1.3.el6.x86_64
Plugins activos: rah_replace-0.2, zem_contact_reborn-4.0.3.20m, zem_contact_lang-4.0.3.6m, adi_gps-0.1, smd_query-0.41, jmd_count-0.1.1, rss_google_map-0.5m, sab_substr-0.4, smd_if-0.81, rss_auto_excerpt-0.5, rvm_substr-0.3, lam_dynamic_image-0.1, smd_gallery-0.6, lam_image_uploader-0.6cm, ied_hide_in_admin-0.1.6, rss_article_edit-0.1, msd_google_map-1.8m, mem_postmaster-1.0.7m, upm_image-0.6.2, glz_custom_fields-1.2.4m, gbp_admin_library-0.4.2, mem_postmaster_library-1.0.4m, smd_lib-0.36, bot_write_tab_customize-0.5.2, wet_haystack-0.6, bot_admin_tooltips-0.4, bot_privs-0.3.2
Tema de administración: classic 4.2.0

Comprobación previa:
————————————
Ruta para subir archivos no tiene permisos de escritura: home/personales/adiaz001/web01/textpattern/files
Ruta al directorio temporal no tiene permisos de escritura: home/personales/adiaz001/web01/textpattern/tmp
El módulo de Apache mod_rewrite no está instalado
Algunos archivos de Textpattern han sido modificados: /home/personales/adiaz001/web01/textpattern/include/txp_article.php, /home/personales/adiaz001/web01/textpattern/include/txp_list.php, /home/personales/adiaz001/web01/textpattern/index.php, /home/personales/adiaz001/web01/textpattern/lib/txplib_db.php, /home/personales/adiaz001/web01/textpattern/lib/txplib_misc.php
Las siguientes funciones de PHP (que pueden ser necesarias para Textpattern) están deshabilitadas en tu servidor: openlog, apache_setenv, virtual, apache_child_terminate, apache_get_modules, apache_get_version, apache_getenv, apache_note
————————————

Contenidos del archivo .htaccess:
————————————
DirectoryIndex index.php index.html

Options +FollowSymLinks
RewriteEngine On
Options -Indexes

  1. BEGIN WordPress
    <IfModule mod_rewrite.c>

RewriteEngine On
RewriteBase /

RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

</IfModule>
  1. END WordPress

php_value register_globals 0

————————————

Offline

#4 2016-11-29 10:57:09

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: Fatal Error | Paid work

Oh! and this error shows up in the admin:
Warning: apache_get_modules() has been disabled for security reasons in /home/personales/adiaz001/web01/textpattern/include/txp_diag.php on line 98 Warning: in_array() expects parameter 2 to be array, null given in /home/personales/adiaz001/web01/textpattern/include/txp_diag.php on line 99

Offline

#5 2016-11-29 11:16:46

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

Re: Fatal Error | Paid work

mlarino wrote #303084:

I though the problem was the image size, but they are uploading 600kb images

Looking at it again, it might not be the actual image that’s the problem. Note it’s failing when it tries to allocate a tiny amount of memory (about 11KB) so it might be another plugin further up the chain that’s hogging or not releasing memory.

It’s likely one of these admin-side plugins. With the exception of lam_image_uploader, try disabling them one by one and performing an image upload to narrow it down. If it still fails with a particular plugin disabled, turn it back on and try the next one:

  • rss_auto_excerpt
  • lam_image_uploader
  • ied_hide_in_admin
  • msd_google_map
  • mem_postmaster
  • glz_custom_fields
  • gbp_admin_library
  • mem_postmaster_library
  • bot_write_tab_customize
  • bot_admin_tooltips
  • bot_privs

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2016-11-29 21:35:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,254
GitHub

Re: Fatal Error | Paid work

Wordpress references in the .htaccess, too.

Offline

Board footer

Powered by FluxBB