Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-11-07 19:28:25

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Internal error ... javascript?

I’m getting an unknown error (for me that is) > screenshot … “Internal error “’‘ is not an integer”.” When I delete the pop-up I’ll get a window with: “I’m sorry. I’m afraid I can’t do that; article edit is an unsafe operation.”

I did a forum search and followed the advice to disable all plugins … but nada … :(

I do remember that I made a new database and filled it with tables from a local copy of the site. I got an error that there was a severe javascript error … !? I did check the tables, did a repair etc. Nothing.

I’ve other sites running on the same server with their own, also copied, databases. No problems there.

Diagnostics:

Textpattern version: 4.5.7 (r5900)
Last update: 2014-11-17 15:16:27/2016-11-07 12:24:02
Document root: /var/www/vhosts/mariaberkhout.nl/httpdocs
$path_to_site: /var/www/vhosts/mariaberkhout.nl/httpdocs/new
Textpattern path: /var/www/vhosts/mariaberkhout.nl/httpdocs/new/textpattern
Permanent link mode: section_title
open_basedir: /var/www/vhosts/mariaberkhout.nl/:/tmp/
Temporary directory path: /var/www/vhosts/mariaberkhout.nl/httpdocs/new/textpattern/tmp
Site URL: www.mariaberkhout.nl/new
PHP version: 5.6.27
GD Graphics Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
Server TZ: Europe/Amsterdam
Server local time: 2016-11-07 20:16:15
DST enabled?: 0
Automatically adjust DST setting?: 0
Time zone: Europe/Amsterdam (3600)
MySQL: 5.1.73
Locale: en_GB.UTF-8
Server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.32-642.6.1.el6.x86_64
Active plugins: adi_mobile-0.2, smd_thumbnail-0.31, yab_email-0.6, adi_link-0.4, adi_notes-1.2, tom_image_grid-0.4, bot_show_image-0.4, smd_macro-0.30, stm_article_order-0.3m, upm_textile-0.3, zem_contact_reborn-4.5.0.0, jra_ext_link-0.2a, etc_link_to-0.2.1
Admin-side theme: classic 4.5.7

Pre-flight check: 
------------------------
Nieuwe textpattern versie 4.6.2 beschikbaar voor download.
------------------------

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

# SVG
AddType image/svg+xml  svg svgz
AddEncoding gzip       svgz

------------------------

Any help is appreciated … :)

Last edited by RedFox (2016-11-07 19:33:49)

Offline

#2 2016-11-08 03:16:51

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,075
Website Mastodon

Re: Internal error ... javascript?

are you using MLP?

see here


…. texted postive

Offline

#3 2016-11-08 08:43:45

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: Internal error ... javascript?

bici wrote #302754:

are you using MLP?

No, but you directed me to the debug mode … :)

Maybe it has something to do with smd_thumbnail and an undefined alt tag … !?

One of many:

Tag foutmelding <txp:smd_thumbnail type="200"> ->  Notice: Undefined variable: alt bij het verwerken van module “image-grid” op pagina “collectables”

And one of many:

textpattern/lib/txplib_misc.php(812) : eval()'d code:1346 smd_thumb_img()
textpattern/lib/txplib_publish.php:426 smd_thumbnail()
textpattern/lib/txplib_publish.php:339 processTags()
textpattern/publish/taghandlers.php:3447 parse()
textpattern/lib/txplib_publish.php:426 permlink()
textpattern/lib/txplib_publish.php:339 processTags()
textpattern/publish/taghandlers.php:3076 parse()
textpattern/lib/txplib_publish.php:426 images()
textpattern/lib/txplib_publish.php:339 processTags()
textpattern/lib/txplib_misc.php:1974 parse()

The module:

<article role="article" itemscope itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<!-- Read me > http://txptips.com/using-images-in-adaptive-design -->
<txp:images>
<txp:permlink>
<img src='<txp:smd_thumbnail type="400"><txp:smd_thumbnail_info item="url" /></txp:smd_thumbnail>' srcset='<txp:smd_thumbnail type="200"><txp:smd_thumbnail_info item="url" /> 200w</txp:smd_thumbnail>,
<txp:smd_thumbnail type="400"><txp:smd_thumbnail_info item="url" /> 400w</txp:smd_thumbnail>,
<txp:smd_thumbnail type="800"><txp:smd_thumbnail_info item="url" /> 800w</txp:smd_thumbnail>, 
<txp:smd_thumbnail type="1200"><txp:smd_thumbnail_info item="url" /> 1200w</txp:smd_thumbnail>'
sizes="(max-width: 640px) 50vw, (max-width: 1024px) 33vw, (max-width: 1440px) 25vw" />
</txp:permlink>
</txp:images>
</div>
</article>

I think I need Bloke’s help here …

[edit]
Nobody? It’s not really a problem because setting Txp in ‘Live’ mode all errors are gone … ;-)

Last edited by RedFox (2016-11-15 08:10:11)

Offline

Board footer

Powered by FluxBB