Fails with PHP 4.3.11

monstordh - January 30, 2008 - 20:16
Project:PayPal Node
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:budda
Status:closed
Description

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.

#1

budda - February 9, 2008 - 16:55
Assigned to:Anonymous» budda
Status:active» fixed

Fixed in the dev code. If it's all good for you in PHP4 i'll roll a new release.

#2

monstordh - February 12, 2008 - 00:57
Status:fixed» active

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

GreenJelly - February 12, 2008 - 03:48

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

monstordh - February 12, 2008 - 18:04

In a perfect world, I would definitely agree. However, with a third party host, you take what you can get.

#5

budda - February 12, 2008 - 22:44

Okay, one more time - hopefully all the pesky PHP4 issues resolved. Fix committed to dev.

#6

monstordh - February 13, 2008 - 00:00

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

monstordh - February 13, 2008 - 20:29

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

monstordh - February 13, 2008 - 10:55

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

budda - February 21, 2008 - 20:06

please try installing the module on a fresh site.

What database are you using too?

#10

monstordh - February 27, 2008 - 22:12

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

budda - February 29, 2008 - 00:31

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

budda - February 29, 2008 - 00:32
Status:active» fixed

#13

Anonymous (not verified) - March 14, 2008 - 00:41
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.