Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#673 2009-09-04 10:05:32

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

Look at the resulting HTML code that the browser receives. This is more a generic CSS question than a question about this plugin.

Offline

#674 2009-09-04 10:10:16

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: zem_contact_reborn 4.0.3.20

I think It may be working, apart from IE6 but whats new!

Cheers
m

Offline

#675 2009-09-25 18:56:42

makason
Member
From: Hilo, Hawaii
Registered: 2005-01-23
Posts: 34
Website

Re: zem_contact_reborn 4.0.3.20

I upgraded an old txp site to 4.0.8 (really like the new features). Everything working fine.

I had an existing form working using zem contact reborn. I had to make a new form and decided to upgrade the plugin too. I upgraded both plugins (zem contact lang) and now when the reborn is active, my whole site goes down with the following error:

atal error: Cannot redeclare zem_contact() (previously declared in/textpattern/lib/txplib_misc.php(570) : eval()’d code:1) in //textpattern/lib/txplib_misc.php(570) : eval()’d code on line 300

I have many other plugins and saw a thread that perhaps there is a conflict? Any ideas on how to fix?

Mahalo

Last edited by makason (2009-09-25 21:23:07)

Offline

#676 2009-09-25 19:41:58

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: zem_contact_reborn 4.0.3.20

The error message is telling you that the function zem_contact() is being declared twice, which is illegal. Unless you have hacked your installation, the second declaration would most likely come from an older version of the plugin with a different name, either installed as normal or in your plugin cache.

BTW, for security it is probably best to edit such error messages before posting them publicly, excising the telling part of your file paths (everything before “/textpattern”).


Code is topiary

Offline

#677 2009-09-26 06:14:54

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

Likely a copy of zem_contact, the predecessor of zem_contact_reborn.
PS. Editing out file paths is security by obscurity. If publishing file paths is insecure, then the system is insecure anyway.

Offline

#678 2009-10-08 14:56:47

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: zem_contact_reborn 4.0.3.20

What should I change to the plugin code if I wanted to display the label in the e-mail, even if nothing was entered. Now, it doesn’t show at all.

I tried to use   as the default text, but that shows that code in the inputfield, instead of replacing it with a non-breaking space.

Offline

#679 2009-10-09 09:07:35

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

Michiel, you can do that by commenting out (or removing) the following line in the plugin code:

if (!trim($zem_contact_values[$name])) continue;

Offline

#680 2009-10-16 11:25:26

jpleboeuf
New Member
From: Prague, Czech Republic
Registered: 2009-10-08
Posts: 5
Website

Re: zem_contact_reborn 4.0.3.20

Maybe a small bug in version 4.0.3.20 related to the way the form label is handled…

In the documentation, on can read:

label="text"
Label for the contact form. If set to an empty string, display of the fieldset and legend tags will be suppressed. Default is Contact.

If one does not put the label field, that’s okay, one gets a label, with value “Default”.
But if one puts a value or an empty value, the value of the form label equals the label from the last form field.

In the code, function zem_contact, I see:

    if ($show_input and !$send_article or gps('zem_contact_send_article'))
    {
        return '<form method="post"'.((!$show_error and $zem_contact_error) ? '' : ' id="zcr'.$zem_contact_form_id.'"').' class="zemContactForm" action="'.htmlspecialchars(serverSet('REQUEST_URI')).'#zcr'.$zem_contact_form_id.'">'.
            ( $label ? n.'<fieldset>' : n.'<div>' ).
            ( $label ? n.'<legend>'.htmlspecialchars($label).'</legend>' : '' ).
            $out.
            n.'<input type="hidden" name="zem_contact_nonce" value="'.$zem_contact_nonce.'" />'.
            n.'<input type="hidden" name="zem_contact_form_id" value="'.$zem_contact_form_id.'" />'.
            $form.
            callback_event('zemcontact.form').
            ( $label ? (n.'</fieldset>') : (n.'</div>') ).
            n.'</form>';
    }

I think $label should be something else, because $label gets its wrong value from the last iteration of:

        foreach ($zem_contact_labels as $name => $label)
        {
            if (!trim($zem_contact_values[$name])) continue;
            $msg[] = $label.': '.$zem_contact_values[$name];
        }

I am right (there is a name clash), or I am in the void?

P.S.: sorry, no time for the moment, but I will try a fix in a few days.

Offline

#681 2009-10-17 20:55:02

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

Those two blocks of code never execute at the same time, so they don’t clash.
If there’s a problem, please provide an example that shows how you’re using the plugin, what the result is and what you think is wrong.

Offline

#682 2009-10-21 05:38:48

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: zem_contact_reborn 4.0.3.20

Hi,
today I ran into problems installing contact_reborn on a new txp 4.20 install.
zem_contact_reborn won’t install.
There is an error message “Badly formed or empty plugin code.”

I never had this before. Thrice checked and verified, but I can’t get rid of it.

Any tipps?

Textpattern version: 4.2.0 (r3275)
Last Update: 2009-10-11 15:50:58/2009-10-11 15:43:25
Document root: /home/www
$path_to_site: /home/www
Textpattern path: /home/www/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/www/textpattern/tmp
Site URL: xxxxxx.de
PHP version: 5.2.10
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server TZ: Europe/Berlin
Server Local Time: 2009-10-21 07:41:39
DST enabled?: 1
Automatically adjust DST setting?: 1
Time Zone: Europe/Berlin (3600)
MySQL: 5.0.32-CM4all-PRO-4-log
Locale: en_GB.UTF-8
Server: Apache/2.0.55 (Debian) JETServ/2.2.24 CM4all-JailCGI/1.2 mod_apreq2-20051231/2.6.0
PHP Server API: cgi
RFC 2616 headers: 0
Server OS: Linux 2.6.30.5-cmag1-toi-hosting32
Active plugins: rvm_maintenance-0.5, rvm_privileged-0.3, sac_link_in_excerpt-0.1.2, jmd_author-0.2, pap_contact_cleaner-0.1, zem_contact_lang-de-4.0.3.6, hcg_templates-0.3, tru_tags-3.5, upm_img_popper-1.3.7, wet_haystack-0.5, wet_quicklink-0.6, wet_peex-0.4
Admin-side theme: classic 4.2.0

Pre-flight check: 
------------------------
.htaccess file is missing
Clean URL test failed.
------------------------

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: utf8
character_set_filesystem: binary
character_set_results: utf8
character_set_server: utf8
character_set_system: utf8
character_sets_dir: /usr/share/mysql/charsets/
17 Tables: OK

10 Custom Fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: date/5.2.10, libxml, openssl, pcre, zlib/1.1, bcmath, calendar, ctype, curl, dba, dbase, dom/20031129, session, filter/0.11.0, ftp, gd, gettext, gmp, hash/1.0, iconv, json/1.2.1, ldap, mbstring, mcrypt, mhash, mysql/1.0, SimpleXML/0.1, SPL/0.2, PDO/1.0.4dev, pdo_sqlite/1.0.1, pgsql, posix, Reflection/0.1, standard/5.2.10, shmop, pdo_pgsql/1.0.2, soap, pdo_mysql/1.0.2, SQLite/2.0-dev, exif/1.4 $Id: exif.c,v 1.173.2.5.2.28 2009/05/28 14:03:09 pajoye Exp $, tokenizer/0.1, wddx, xml, xmlreader/0.1, xmlwriter/0.1, xsl/0.1, zip/1.8.11, cgi, suhosin/0.9.23, mailparse/2.1.1

Edit: I tried to install older versions. Now I succeeded with installing 4.0.3.18 – and then modified the code by pasting the code of 4.0.3.20. But I still have to test if it really works.

Last edited by saccade (2009-10-21 05:53:54)

Offline

#683 2009-10-21 09:14:47

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.20

Michael, does it make a difference if you upload the compressed version of the plugin or not?
Is it the upload step that fails or the install confirmation step?

Offline

#684 2009-10-21 09:31:58

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: zem_contact_reborn 4.0.3.20

Ruud, nice to have you here :)
Stupid me, the compressed version worked – I didn’t think of that way.
BTW it failed in the upload step.

Thanks for your help! Now it is installed.

Offline

Board footer

Powered by FluxBB