Errors On Setup With PHP 5.2.3
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of preg_match(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/.hunka/dweekly/pbhelp.weekly.org/Satisfaction.php on line 258
Fatal error: Call to undefined function urlescape() in /home/.hunka/dweekly/pbhelp.weekly.org/Sprinkles.php on line 516
Fatal error: Call to undefined function urlescape() in /home/.hunka/dweekly/pbhelp.weekly.org/Sprinkles.php on line 516
6
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?FYI - this was on Dreamhost.
-
Inappropriate?David: Let me rope one of our developers into this so we can get you a good answer.
I’m sure we can figure this out
-
Inappropriate?Do you have a page that lists common configuration files and settings for the help center? My host prefixs my account name to all MySQL databases, so "Sprinkles" becomes "Username_Spinkles". What files do I need to update to configure the help center to access the correct dabase and under the correct user?
I’m flummoxed
-
Inappropriate?Also on Dreamhost with PHP 5.2.3, having the same error.
I’m hoping theres a solution
-
Inappropriate?To fix the errors, remove the & on line 258 of Satisfaction.php and change urlescape in Sprinkles.php on line 516 to urlencode
5 people say
this solves the problem
-
Inappropriate?Ryan McCue has the answer: remove the & on line 258 of Satisfaction.php.
I’m repentent
-
Inappropriate?Paul: you can configure the name of the MySQL database by changing the value assigned to $mysql_db in config.php. It defaults to 'sprinkles' but you can change it to anything you want!
2 people say
this solves the problem
-
Inappropriate?The web instructions are terrible and incomplete. They should say to just read the INSTALL file, which is much more correct and comprehensive.
-
you are absolutely right. we'll get that fixed. -
Inappropriate?I made Ryan's changes and no longer get an error message, but it only returns a blank page with the URS: .../helpcenter/admin-findsite.php
I’m thinking that this is becomming more involved than the Web site instructions made it look.
-
Inappropriate?Hmmm...it seems like I have to install another application called SMARTY and I don't seem to have access to the PHP library location...I'll have to check with tech. I suppose this thing won't work without SMARTY.
-
Inappropriate?Make sure you've created the 'templates_c' directory and given it the appropriate permissions that should solve the blank screen problem. It did for me.
1 person says
this solves the problem
-
Inappropriate?Here's a post I just wrote with a walkthrough on how to install: http://cubegames.net/blog/2008/05/30/...
-
Inappropriate?Looking at Ryan's blog and the install instructions file that came in the TAR it looks like there are a number of other items that I need to download and install (Smarty, HTTP_request PEAR library) a I'll have to set up a second MySQL database for Smarty. Since I was going to test this on a shared-server hosting plan, I don't seem to have access to the PHP includes library and INI file. Blech! Benefit/Effort ratio has decreased to the point that I'll leave this for the early adapters. A cool feature that would lead to more widespread adoption of your helpcenter would be providing the ability to just plug some HTML code onto a WebPage to access the HelpCenter portal hosted on GetSatisfaction.com.
-
I did mention how to do it without PEAR and without having access to the includes directory, which you may have missed. -
Note: you shouldn't need a second database for Smarty; I think that was an error in Ryan's blog post. -
Ezra is correct and I've fixed the post. Thanks. -
Inappropriate?Hmm...downloaded the Smarty files and uncompressed them but didn't configure beyond that. Didn't install the PEAR library, but making the templates_c folder world-writable did the trick as Dean said.
I’m happy that I stumbled through this.
-
Inappropriate?I have followed all instructions listed @ http://cubegames.net/blog/2008/05/30/... and I am still getting just a blank screen @ admin-findsite.php
What's the next step in this case?
I’m confused
-
Shawn: the next step would be to have a look at your server's error log and let us know what messages are coming up there when you hit the admin-findsite page. -
Inappropriate?Well, it seems to fail on this line:
$smarty->display('admin-findsite.t');
I have smarty inside /includes folder, and I have this line:
set_include_path(get_include_path() . PATH_SEPARATOR . '/includes/');
inside config.php file. Is there something wrong with that? -
Inappropriate?As a heads up, if you get a blank page, the issue is *probably* that you didn't make the Smarty template cache directory or forgot to make it writeable by Apache. :)
-
Inappropriate?Read the INSTALL, checked this thread, read the great post from Ryan. Installed PEAR and SMARTY, fixed the include in config.php, fixed the & and urlencode, made sure to have template_c 777, changed the database name, username & password.
Now I'm getting a redirect loop error when I try to access the starting page...
I’m undecided
-
Inappropriate?Been working on this for 2 days now. I got to the point, after editing a lot of their code (lots of pass by reference stuff), and realizing that they give you all the vendor stuff (making downloading all that stuff pointless) for free, that I get this:
PHP Error (level 512): 'Smarty error: unable to read resource: "admin-findsite.t"
What this looks like is that its unable to compile and populate the template_c directory and pull the templates out of the directory but I am not getting any errors regarding it. Any help would be great. I'm on OS X with PHP 5.2.5.
I’m frustrated
-
That doesn't sound good. I will check with folks here and see if I can get a solution for you, but you may also want to start a new topic so it is more visible. -
Thanks! -
Adam: There should be a file themes/default/templates/admin-findsite.t in your installation. Is that there? And is it readable by the webserver? I would expect that the problem relates to that file rather than its counterpart in the templates_c directory. -
Adam, did this do the trick for you? -
I had thrown away the directory and started again before the response came. I am currently working on another task that is higher priority but will respond when I come back to this and check.
I re-unzipped the same tarball and it did have the templates directory populated and I definitely did "chown -R www *" to the directory so we'll see. -
Starting from scratch it seems to all work. I suspect the issue may be that I originally followed the instructions and this time I didn't. :)
It's great that you guys provide a vendor directory now with all the packages, updated instructions would be great in the future.
Thanks for the help.
Loading Profile...



EMPLOYEE





