Page 3 of 7

Re: [mod] View HTML Email in Browser

PostPosted: 8:50am, Fri 31 Jul, 2009
by dsided
Great mod - it works well, however when I preview the message I get the following two errors:

Code: Select all
Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/var/www/vhosts/MYWEBSITE.com/httpdocs/lists/admin/../../../VERSION) is not within the allowed path(s): (/var/www/vhosts/MYWEBSITE.com/httpdocs:/tmp:/usr/share/pear:/nonexec) in /var/www/vhosts/MYWEBSITE.com/httpdocs/lists/admin/connect.php on line 2

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/me/phplistplugins) is not within the allowed path(s): (/var/www/vhosts/MYWEBSITE.com/httpdocs:/tmp:/usr/share/pear:/nonexec) in /var/www/vhosts/MYWEBSITE.com/httpdocs/lists/admin/pluginlib.php on line 8


Any ideas?

Re: [mod] View HTML Email in Browser

PostPosted: 2:04pm, Fri 31 Jul, 2009
by dsided
As an update to the previous post, the first error was fixed by editing the config/config.php

define("PLUGIN_ROOTDIR","/home/me/phplistplugins");

changed to /lists/admin/plugins

However the connect error is not fixed, looking at the code it's looking for this:
Code: Select all
<?php
if (is_file(dirname(__FILE__) . '/../../../VERSION')) {
   $fd = fopen(dirname(__FILE__) . '/../../../VERSION', "r");
   while ($line = fscanf($fd, "%[a-zA-Z0-9,. ]=%[a-zA-Z0-9,. ]")) {
      list ($key, $val) = $line;
      if ($key == "VERSION")
         $version = $val . "-";
   }
   fclose($fd);
} else {
   $version = "dev";
}


What is the version file and what is it used for?

Re: [mod] View HTML Email in Browser

PostPosted: 2:11am, Wed 05 Aug, 2009
by atljeremy
Getting the following error...
No Hotlinking

Anyone have any ideas what is wrong? Thanks!

Re: [mod] View HTML Email in Browser

PostPosted: 8:42pm, Fri 07 Aug, 2009
by dsided
@atljeremy that because you're tried to send a test mail again as this mod makes a unique entry in the database, if you click send again it throws up this duplicate error. You need to click new email to send another one.

Re: [mod] View HTML Email in Browser

PostPosted: 8:48pm, Fri 07 Aug, 2009
by dsided
With regards to the error above, I just removed the following code from connect.php:

Code: Select all
<?php
if (is_file(dirname(__FILE__) . '/../../../VERSION')) {
   $fd = fopen(dirname(__FILE__) . '/../../../VERSION', "r");
   while ($line = fscanf($fd, "%[a-zA-Z0-9,. ]=%[a-zA-Z0-9,. ]")) {
      list ($key, $val) = $line;
      if ($key == "VERSION")
         $version = $val . "-";
   }
   fclose($fd);
} else {
   $version = "dev";
}

Re: [mod] View HTML Email in Browser

PostPosted: 3:02am, Sat 22 Aug, 2009
by xannonite
Sorry again for the late reply. I am still not receiving notices about new posts even though I am subscribed to the topic.

@dsided:
As far as I can tell your problem has nothing to do with this mod. It appears that PHP is configured to only allow file system functions to be executed on files/folders if their location is specified by the open_basedir INI setting. You will need to adjust the open_basedir setting in your INI or disable safe mode. If you do not have access to the INI settings, then ask your hosting provider to turn off safe mode for your account.

Re: [mod] View HTML Email in Browser

PostPosted: 2:48pm, Mon 14 Sep, 2009
by Aranarth
Hello,
I tried to install this mod on a phplist v2.10.9 installation.
I followed all the steps provided in the manual (install.txt), I modified the files and the database and uploaded the vm.php but somehow the mod doesn't seem to work.
No messages are stored in the db and the link for the browser-view isn't replaced properly.
Has anyone else experienced the same problem?

Here are my modified files:

Has anyone got any idea on how to fix that thing?

Kind regards,
Aranarth

Re: [mod] View HTML Email in Browser

PostPosted: 2:46am, Tue 15 Sep, 2009
by xannonite
@Aranarth:
Your modified files look ok. I need more information, such as your PHP error log or your MySQL error log (if you have it enabled.) A dump of your messageview table would be good also. Are emails actually going out? If not, do they go out with the original phplist files? Are the messages you are sending in HTML format? The mod won't do anything if the messages aren't HTML.

Re: [mod] View HTML Email in Browser

PostPosted: 7:34am, Tue 15 Sep, 2009
by Aranarth
I've got no error logs :|
Heres the database-dump: dump.sql, as you can see, no messages are saved.
The e-mails are going out and are HTML format.

As you can see, I also put
Code: Select all
print_r("Hello world -lg");

to the sendemaillib.php, but it's never printed.

Furthermore I noticed, that the message isn't saved in table phplist_message either, but available for editing. Isn't that also very strange?
Another strange behaviour occours when I try to resend the message: PHP-lists tells me that the resend was executed, but I don't get a second email at all.

Re: [mod] View HTML Email in Browser

PostPosted: 6:05pm, Tue 15 Sep, 2009
by xannonite
Without an error log, there isn't much I can do. Also, you didn't answer my question of whether or not phplist works without the mod installed. You also didn't indicate whether or not the messages are actually going out.

1) Test phplist without the mod installed. Are messages saved in the database? Are emails going out to their respective recipients? If not, then your problem is not related to this mod. Something is wrong with your phplist installation. Please consult the support page.

2) If phplist does work without the mod installed, set error_reporting to E_ALL at the bottom of your phplist config, and add the following line somewhere in your config:

Code: Select all
ini_set('display_errors', true);


Alternatively you can set these values in your php.ini if your web host allows it.

3) Test phplist with the mod installed again, and see if any errors appear. It is unlikely that there aren't any errors, and being able to view them is imperative. Note that sometimes errors do not appear on the screen due to CSS, and you might need to view the source.

Re: [mod] View HTML Email in Browser

PostPosted: 9:52am, Wed 16 Sep, 2009
by Aranarth
PHP list does work, with and without your mod.
However the mod doesn't work.
E-Mails are going out. Messages are saved in the db, but not in the table of the mod.

I've got no errors display, even when using

Code: Select all
ini_set('display_errors', true);


and

Code: Select all
error_reporting(E_ALL);

Re: [mod] View HTML Email in Browser

PostPosted: 8:45pm, Tue 27 Oct, 2009
by valeriestw
Hi,

I am a novice with PHPList and tried to install this mod today. I followed all the instructions carefully, and after installation, when I went to the Send a Message page in PHPList, nothing showed but the instructional paragraph at the top. The right hand menu was gone, as well as the message editor.

I had to reverse all changes to get the menu back.

I am using PHPList 2.10.10 and the latest version of your mod 1.2.1.

Any idea what might be causing this?

Re: [mod] View HTML Email in Browser

PostPosted: 3:36am, Wed 28 Oct, 2009
by xannonite
@valeriestw:
It sounds like either something wasn't copied/pasted properly, or the database structure is incorrect. If most of the screen disappears, then it's likely an error was generated by PHP. If the error is not displaying on the screen, then it should be in the PHP error log. As with the previously-reported issue, I can't do much without the PHP error message. All I can do is give you a few tips:

1) Make sure everything is pasted exactly with no missing semicolons or brackets, and be sure to copy vm.php to your 'lists' folder.

2) Make sure your file permissions are correct and that they aren't changed when saving edited files.

3) Make sure the database structure matches what's in the .sql file included with the mod. You can create the table structure using the tool built into phplist.

Otherwise, if you are able to provide any PHP error messages, I may be able to offer further assistance.

Re: [mod] View HTML Email in Browser

PostPosted: 1:45pm, Wed 28 Oct, 2009
by valeriestw
Hi,

Thanks for the reply.

As I mentioned, I'm a novice and definitely no programmer. I tried again, carefully copying and pasting as per the instructions. I could not find anywhere that lists what the correct file permissions are supposed to be - currently all files for phplist are set at 755.

The db structure seems to be correct. There are no errors displaying, nothing in the phplist error log. Nothing on my cpanel error log. I cannot find anything anywhere the specifically displays php error logs.

Still getting the same result. Other pages within phplist work - but the Send a Message page is cut off.

Am I just screwed or is there some other way I can track down the problem?

Thanks again for your help.

Valerie

Re: [mod] View HTML Email in Browser

PostPosted: 4:53pm, Sun 09 May, 2010
by popovici
Hello,
I've just installed the mod in PHPList 2.11.3, i've added all info in the database, the dbcheck shows everything works perfectly.
The placeholder [VIEWMESSAGEURL] however, doesn't work.
I'm sending all HTML messages, I've checked all advice given in this thread (where appropriate) but didn't find a solution. Messages are sent out, the unique id is being created since I get the "duplicate entry" error when I send the test message twice..

I've also checked other PHPList built-in placeholders to see if they work, and except for FORWARD (which looks to be a mistake in the version I'm using.. they forgot to add it in the config file), they all work..

Any ideas?
Many thanks.