Posted by monstordh on January 30, 2008 at 8:16pm
Jump to:
| Project: | PayPal Node |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | budda |
| Status: | closed (fixed) |
Issue Summary
Getting this error when trying to access admin pages:
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/content/c/l/a/claudehickman/html/modules/paypalnode/paypalnode.install on line 123
Worked fine on PHP 5 (I was running my local PHP Version 5.2.3).
When I uploaded to the server (PHP Version 4.3.11) it failed.
Comments
#1
Fixed in the dev code. If it's all good for you in PHP4 i'll roll a new release.
#2
New error:
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/content/c/l/a/claudehickman/html/modules/paypalnode/paypalnode-admin.inc on line 689
This happened as soon as I uploaded the module and refreshed the modules page.
#3
I dont know, but for me... I think its time to give up on version 4... I know I am writing a module that will only work with php 5.0! I know others will be doing so soon. Views 2 maybe php 5 only...
#4
In a perfect world, I would definitely agree. However, with a third party host, you take what you can get.
#5
Okay, one more time - hopefully all the pesky PHP4 issues resolved. Fix committed to dev.
#6
i tried using the new .module and .install files (that's all i saw updated) and still got this error:
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/content/c/l/a/claudehickman/html/modules/paypalnode/paypalnode-admin.inc on line 689
#7
Ok - I think it is working now. I deleted the entire module package and replaced it with the full 5.x-1.x-dev package and ran the update.php before trying to access the modules page and it appears to be working (at least I can see my site now). I'll let you know soon if I have any further issues. Thanks for taking care of this, Mike.
#8
When I went to the Content Fees page, I got the following warning:
user warning: Table 'claude_db.paypalnode_prices' doesn't exist query: SELECT * FROM paypalnode_prices WHERE price != 0 ORDER BY pid in /home/content/c/l/a/claudehickman/html/includes/database.mysql.inc on line 172.
and on the Content Fee Report page, it says:
user warning: Table 'claude_db.paypalnode_node' doesn't exist query: SELECT pn.nid, n.title, u.name, pn.price FROM node n INNER join users u ON u.uid = n.uid INNER JOIN paypalnode_node pn ON pn.nid = n.nid WHERE n.type = 'product' AND n.status = 1 in /home/content/c/l/a/claudehickman/html/includes/database.mysql.inc on line 172.
Suggestions?
#9
please try installing the module on a fresh site.
What database are you using too?
#10
MySQL database. Isn't there an easier way for me to test this than initializing a whole new site? This is on a shared server with only one database. I know I can prefix, but cleaning things out can be tricky for people like me who are fairly new to all of this. Can I run some other kind of test or something? Delete some files, tables, etc.?
ps. sorry it took me so long to respond. i didn't know you had posted changes. i just found the "subscribe" feature.
#11
Basically updating (creating new tables) might be knackered. you could disable the module, then clicke the "uninstall" tab and make sure everything is cleaned out. then re activate the module.
As the SQL tables are nothing to do with the PHP4 error i am closing this issue. Please open a separate one if you find a bug with the install / SQL.
#12
#13
Automatically closed -- issue fixed for two weeks with no activity.