I tried to load your plugin but got the following error, when i clicked activate plugin from the admin, can you give me an idea what went wrong..? thanks
sajid
Parse error: syntax error, unexpected T_NEW in /home/surplust/public_html/wp-content/plugins/wp-classified/includes/_functions.php on line 790
throw new sfCacheException(’Unable to open cache directory “‘.$dir.’”‘);
to
echo ‘Unable to open cache directory “‘.$dir.’”‘;
Thanks for report.
Stephan, 24. November 2008, 10:18
Dear Mohammad,
first thanks for your plugin. I´m running it on one of my sites and I´m happy that you created maybee the first businessdirectory-plugin for wordpress! Thanks :-)
I´m using WPMU on two different servers and the installation of your plugin on the first server was without any problems, on the other server I´m faced with the same “790 problem”. I changed the line 790 just like you told above, but there is still some error while activating the plugin:
Parse error: parse error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /var/www/web38/html/wp-content/plugins/wp-classified/includes/_functions.php on line 790
Can you please advice the right way to handle this or what reason this problem is about … so that I maybe can ask my webhoster to change some settings?
@Stephan, you can remove the both line 789 and 790 completely.
Regards,
Mohammad
Stephan, 24. November 2008, 23:08
it works :-))
Thanks Mohammad for your support (and plugin)!!
Stephan, 24. November 2008, 23:32
Me again:
sorry, dont works :-(( - Activating plugin has been successful but if I run the classified-page there is the following error:
Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/web38/html/wp-content/plugins/wp-classified/includes/_functions.php on line 790
If there is no solution for this problem, maybe you can give me a hint, what kind of serveradjustments I have to look/ask for?? Just like I told, your plugin works well on another WPMU-Installation of mine!
Hi Stephan,
edit _functions.php
line 787:
change to:
$dir = “/var/www/web38/html/wp-content/plugins/wp-classified/images/cpcc/”;
and check the write permission on directory
Mohammad
Stephan, 27. November 2008, 21:47
Hi Mohammad,
I replaced
$dir = ABSPATH.”wp-content/plugins/wp-classified/images/cpcc/”;
with
$dir = “/var/www/web38/html/wp-content/plugins/wp-classified/images/cpcc/”;
but it still don´t works (after that the complete site is down with error :( )
my last part of the _functions.php looks like that right now:
function cleanUpIpTempImages() {
$dir = “/var/www/web38/html/wp-content/plugins/wp-classified/images/cpcc/”;
$deleteTimeDiff=50;
if (!($dh = opendir($dir)))
echo ‘Unable to open cache directory “‘.$dir.’”‘;
$result = true;
while ($file = readdir($dh)) {
if (($file != ‘.’) && ($file != ‘..’)) {
$file2 = $dir.DIRECTORY_SEPARATOR.$file;
if (is_file($file2)) {
if ((mktime() - filemtime($file2)) < $$deleteTimeDiff)
@unlink ( $strDir.$strFile );
Maybe you got an additional idea or can tell me what kind of serverproblem it could depend on, I recently installed your plugin on a third WPMU … and there anything is also fine, just like I told you before with my second WPMU on another server.
Thanks in advance one more time!!!!
Stephan
btw: I found another problem regarding your plugin running with WPMU (I´m using the multisitemanager - so that you can run multiple domains on one WPMU):
If you want to run the plugin on the maindomain (the domain you first installed WPMU on it) you can add cats and lists, but onsite there is no kind of listing, only “Expand” and “Collapse” is visible, but no Cats/Lists and Ads are visible!
Running the plugin on a “clone-site” (all over domains cloned with the maindomain) works without problems!
Maybe something you want to look at in future, just wanted to tell you ;-)
schöner Roller ;)
I tried to load your plugin but got the following error, when i clicked activate plugin from the admin, can you give me an idea what went wrong..? thanks
sajid
Parse error: syntax error, unexpected T_NEW in /home/surplust/public_html/wp-content/plugins/wp-classified/includes/_functions.php on line 790
@sai, sorry
edit and change the line: 790 from
throw new sfCacheException(’Unable to open cache directory “‘.$dir.’”‘);
to
echo ‘Unable to open cache directory “‘.$dir.’”‘;
Thanks for report.
Dear Mohammad,
first thanks for your plugin. I´m running it on one of my sites and I´m happy that you created maybee the first businessdirectory-plugin for wordpress! Thanks :-)
I´m using WPMU on two different servers and the installation of your plugin on the first server was without any problems, on the other server I´m faced with the same “790 problem”. I changed the line 790 just like you told above, but there is still some error while activating the plugin:
Parse error: parse error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /var/www/web38/html/wp-content/plugins/wp-classified/includes/_functions.php on line 790
Can you please advice the right way to handle this or what reason this problem is about … so that I maybe can ask my webhoster to change some settings?
Thanks in advance!
Stephan
@Stephan, you can remove the both line 789 and 790 completely.
Regards,
Mohammad
it works :-))
Thanks Mohammad for your support (and plugin)!!
Me again:
sorry, dont works :-(( - Activating plugin has been successful but if I run the classified-page there is the following error:
Warning: readdir(): supplied argument is not a valid Directory resource in /var/www/web38/html/wp-content/plugins/wp-classified/includes/_functions.php on line 790
If there is no solution for this problem, maybe you can give me a hint, what kind of serveradjustments I have to look/ask for?? Just like I told, your plugin works well on another WPMU-Installation of mine!
Thanks again!
Stephan
Hi Stephan,
edit _functions.php
line 787:
change to:
$dir = “/var/www/web38/html/wp-content/plugins/wp-classified/images/cpcc/”;
and check the write permission on directory
Mohammad
Hi Mohammad,
I replaced
$dir = ABSPATH.”wp-content/plugins/wp-classified/images/cpcc/”;
with
$dir = “/var/www/web38/html/wp-content/plugins/wp-classified/images/cpcc/”;
but it still don´t works (after that the complete site is down with error :( )
my last part of the _functions.php looks like that right now:
function cleanUpIpTempImages() {
$dir = “/var/www/web38/html/wp-content/plugins/wp-classified/images/cpcc/”;
$deleteTimeDiff=50;
if (!($dh = opendir($dir)))
echo ‘Unable to open cache directory “‘.$dir.’”‘;
$result = true;
while ($file = readdir($dh)) {
if (($file != ‘.’) && ($file != ‘..’)) {
$file2 = $dir.DIRECTORY_SEPARATOR.$file;
if (is_file($file2)) {
if ((mktime() - filemtime($file2)) < $$deleteTimeDiff)
@unlink ( $strDir.$strFile );
Maybe you got an additional idea or can tell me what kind of serverproblem it could depend on, I recently installed your plugin on a third WPMU … and there anything is also fine, just like I told you before with my second WPMU on another server.
Thanks in advance one more time!!!!
Stephan
btw: I found another problem regarding your plugin running with WPMU (I´m using the multisitemanager - so that you can run multiple domains on one WPMU):
If you want to run the plugin on the maindomain (the domain you first installed WPMU on it) you can add cats and lists, but onsite there is no kind of listing, only “Expand” and “Collapse” is visible, but no Cats/Lists and Ads are visible!
Running the plugin on a “clone-site” (all over domains cloned with the maindomain) works without problems!
Maybe something you want to look at in future, just wanted to tell you ;-)