
senseless
Member-
Posts
27 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by senseless
-
I have 3x owned licenses I'm looking to part with. I'm asking $200 each.
-
WHMCS 6.0 problems with PHP code not populating the entire page.
senseless replied to senseless's topic in Developer Corner
"As-intended" on the bug reply. I guess no one will be setting any smarty variables or making use of {php} any time soon. Better start loving those hooks -
WHMCS 6.0 problems with PHP code not populating the entire page.
senseless replied to senseless's topic in Developer Corner
What distribution are you using for your dev env? I realized php-mbstring wasn't installed but it didn't resolve the issue. -
WHMCS 6.0 problems with PHP code not populating the entire page.
senseless replied to senseless's topic in Developer Corner
Hooks still work for setting clientarea variables. custom-hook.php function hook_fiberinfo($vars) { global $smarty; $smartyvars = $smarty->getTemplateVars(); $userid = $smartyvars['clientsdetails']['id']; $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid='$userid' AND tblhosting.packageid=tblproducts.id AND tblhosting.domainstatus='Active' ORDER BY tblhosting.id ASC LIMIT 1"); $fiber = ""; while ($data = mysql_fetch_array($result)) { $fiber = $data; } return array("fiberid" => $fiber['id']); } add_hook('ClientAreaPage', 1, 'hook_fiberinfo'); -
[not a bug] [v6] PHP Smarty code is not working properly.
senseless replied to senseless's topic in Troubleshooting Issues
Hooks to clientareapage to set smarty variables still work fine -- I ended up doing this in order to assign the smarty variables I needed. -
[not a bug] [v6] PHP Smarty code is not working properly.
senseless replied to senseless's topic in Troubleshooting Issues
It seems that smarty variables set inside the php tag are also not readable anywhere on the page (though they do appear in the array). To confirm just place this code in any file for testing.. {php} $derp = 1; global $smarty; $smarty->assign('derp', $derp); {/php} {php} echo $derp; {/php} {$derp} The above code will output nothing to the browser. -
WHMCS 6.0 problems with PHP code not populating the entire page.
senseless replied to senseless's topic in Developer Corner
Ya, thats what I had tried (aside from the userid line changes -- ty for that. I was really concerned about pulling uid in from the session variables). The {$fiberid} is still not readable. If I print_r($smarty) after assigning the variable -- I can see it is assigned. I can see the variable in multiple places within the array. But smarty doesn't process the {$fiberid} inside the code. I'm thinking all of this needs to be hooked which I was really hoping to avoid. Current Code: {php} global $smarty; $smartyvars = $smarty->getTemplateVars(); $userid = $smartyvars['clientsdetails']['id']; $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid='$userid' AND tblhosting.packageid=tblproducts.id AND tblhosting.domainstatus='Active' ORDER BY tblhosting.id ASC LIMIT 1"); $fiber = ""; while ($data = mysql_fetch_array($result)) { $fiber = $data; } $fiberid = $fiber['id']; $smarty->assign('fiberid', $fiberid); {/php} <li><a href="/cp/clientarea.php?action=productdetails&id={$fiberid}">My Fiber</a></li> Output on page: <li><a href="/cp/clientarea.php?action=productdetails&id=">My Fiber</a></li> Seems there is something broken or hooking is really the only way to do it. ... Or, could it be my environment? Running cent7 and selinux is disabled. Can you test on your end to see if it's also broken? Something like this.. {php} $derp = 1; global $smarty; $smarty->assign('derp', $derp); {/php} {php} echo $derp; {/php} {$derp} The above code outputs nothing to my browser. No '11' not even a '1'. -
Why can't we have every variable on every page? I wish WHMCS would put more thought into development of their software. You designed a piece of software that was supposed to be more customizable and easier to use than other billing options on the market. But what you made was a cookie cutter billing system that attempts to force everyone to conform to a standard of how a product should be sold. Please realize that people use your software for all sorts of services that aren't just web hosting companies. Some people may want their clients to have product information on the client area. Too much to ask for? You would probably argue that it's too database heavy. I would counter argue that I just put more queries in this template because of lack of documentation and lack of support for customization than you would have had to begin with. Can you at least decode SOME of the pages? How about the cart? Does the cart need to be encrypted? I'd really love to customize the cart. But I can't. If I want to I need to build my own cart PHP file and custom page to handle the entire process. At that point, I might as well just roll my own billing system! Maybe I should, you guys could use some competition. I love this quality documentation... Thanks for the heads up -- I would have never known that after I just spent 8 hours trying to figure out how to get a product id on the client area home -- Btw, THAT IS ALL THE INFORMATION THERE IS ABOUT CUSTOM VARIABLES. THE DOCUMENTATION IS ...................... USELESS............... and do you know how long that documentation has been that way? At least 4 years. I'm pretty sure nothing new has been added and nothing has been modified in the documentation since I first purchased the software in 2009 (and now own 3 copies of ). I'm starting to feel that everything about WHMCS was an afterthought. Even making money....... I love how you rolled out the latest version of 5 as 6 just so you could get everyone to renew their support contracts in order to upgrade. Wonderful business practices right there. Should have thought about your need for cash flow when (more like "if") you created your business plan. </v6rant> Can you at least put up a wiki so us customers can support ourselves?
-
WHMCS 6.0 problems with PHP code not populating the entire page.
senseless replied to senseless's topic in Developer Corner
What is the appropriate way to assign and use a smarty variable in v6? I'm having the same problems with this method as I was with the php tags. It simply won't place the variable on the page. I can print_r($smarty) and see that the variable is assigned. It's just not possible to use it. {php} global $smarty; $userid = $_SESSION['uid']; $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid='$userid' AND tblhosting.packageid=tblproducts.id AND tblhosting.domainstatus='Active' ORDER BY tblhosting.id ASC LIMIT 1"); $fiber = ""; while ($data = mysql_fetch_array($result)) { $fiber = $data; } $smarty->assign('fiberid', $fiber['id']); {/php} Edit: I gave up and just started sticking blocks of php code everywhere i wanted something custom. -
WHMCS 6.0 problems with PHP code not populating the entire page.
senseless replied to senseless's topic in Developer Corner
Thank you -- I had not even considered it. Back to work -
I have documented the issue on the thread here To summarize. If you create code in a {php} tag on a page and then later reference that code in another {php} tag on the SAME page -- the variables / code does not pass through. If you put a variable in one area of the site it's not possible to call it in another even if the php tags are on the SAME page. I attempted to set the variables to global and it had no affect.
-
Hello, I have the following PHP code in my header.tpl {php} $userid = $_SESSION['uid']; $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid='$userid' AND tblhosting.packageid=tblproducts.id AND tblhosting.domainstatus='Active' ORDER BY tblhosting.id ASC LIMIT 1"); $fiber = ""; while ($data = mysql_fetch_array($result)) { $fiber = $data; } $fiberid = $fiber['id']; echo $fiberid; {/php} This code correctly lists the package id of the user On the same page I have the following code <li><a href="/cp/clientarea.php?action=productdetails&id={php} echo $fiberid; {/php}">My Fiber</a></li> The $fiberid displays just fine in the first group of coding but is blank on the second iteration. It's as is if the php variables don't span the full page. The php variables only seem to span a single {php}{/php} tag. Once you leave this tag none of the php variables are available. Any ideas? Bug? - - - Updated - - - To test I did this {php} $userid = $_SESSION['uid']; $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid='$userid' AND tblhosting.packageid=tblproducts.id AND tblhosting.domainstatus='Active' ORDER BY tblhosting.id ASC LIMIT 1"); $fiber = ""; while ($data = mysql_fetch_array($result)) { $fiber = $data; } $fiberid = $fiber['id']; {/php} {php} echo $fiberid;{/php} The $fiberid does not display correctly. But if I put it in the same {php} tag it works fine. So the issue is definitely that PHP code doesn't span the full page, only the single block.
-
[resolved] [Case #2949] 5.1.8 Update breaks View/search clients page
senseless replied to mrl14's topic in Troubleshooting Issues
Did this get ninja patched with no updated to the version number yet? Pretty pathetic that you cant even know if these issues as a result of the patch are fixed because they wont roll out a 5.1.8.1 or a 5.1.9. Getting really tired of WHMCS bs; been looking for a new billing system. Seems theres really nothing to chose from thats any better. Time to build a custom one just for services it looks like. Feel really bad for those beta testers who installed 5.2.x. If you don't know yet, never install any updates from WHMCS without testing them first as they're almost guaranteed to break something. -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
Xinix, it's fixed by patching to the latest update. They ninja released new zip files after releasing a broken update. Re-download and re-apply the update. -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
My email is going out ok. I think the email issue is a WHMCS 5.2.x issue. I'm only running 5.1.4 -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
They hotfixed the zip files and didn't mass email or notify anyone. They just quietly mentioned the problem on their blog and twitter and facebook and some other forums (some mistake on their end in the patch (they didn't test it i guess)). http://blog.whmcs.com/?t=69478 You need to re-download the patched files from there and the problems will be resolved. As I said, I'm not using ftp. I'm logging into my console, using wget to grab the zip file and then using the CLI unzip to unzip the zip file. Also, they've already stated that the problems were a result of their own error in releasing the incorrect files. It said so on the page I linked before. Again, it seems like you're just blindly defending whmcs with no idea of what's going on. -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
How does binary mode in ftp help when I'm performing the actions from an SSH console? FTP never enters the scenario. I'm not sure why you're so set on defending WHMCS's indefensible actions. Here's the announcement: http://blog.whmcs.com/?t=69478 -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
So I could run software with published vulnerabilities? -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
5.1.3 to 5.1.4 hotfix completely broke my WHMCS. Incoming payments no longer register in the billing platform. Several others having the same problem. I will need to sit here all day manually processing payments. -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
Which now has a known vulnerability. I'm sure there are dozens of hackers comparing file sizes to see what files changed so they can start find the bug and start targeting non-upgraded platforms. You're take a pretty big risk. It seems to me they quit testing the platform before making releases. -
[FIXED] Shopping cart not working after upgrade
senseless replied to m107's topic in Troubleshooting Issues
Makes you wish it was at least partially open source so we ourselves could go in and correct problems instead of waiting on WHMCS to do it. Guess today is a vacation day. There's nothing I can do, can't accept any incoming payments (whmcs registers no payments from payment gateways). Awesome billing system they got here. It will completely take your business offline at least 3-4 times a year (whenever there's a security release that probably already resulted in comprimising your entire business because WHMCS can't be bothered to check their ****************ing code). RRRRRRRAHHHHHHHHHHHHHHHHHHHHH What other options are there? I want to get rid of this ****************. I can't believe I have 3 licenses of this crap. I'm glad I only have 1 site that is dependent on this software. Wonder how much money WHMCS is going to make me miss out on today. Will probably be more than the value of the license. Wonder if I can get a refund. I wish modernbill never sold out to PSA. -
If anyone in the future is wondering, I was able to do this by editing the template for the email. Just removed the ticket contents and added the direct link to the support ticket. With a little blurb "view your ticket update at this location".