Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2009 at 14:43 UTC
Updated:
28 Oct 2009 at 00:20 UTC
Everytime i try to import a variant i get this error
An error occurred while attempting to process /test02/admin/build/pages/ajax/operation/node_view/actions/import/form
this is what im trying to import, i exported it from my development site.
any ideas or suggestions? i have read other related issues but i cant find a real solution.
Comments
Comment #1
xecstasyx commentedComment #2
merlinofchaos commentedIs there an error in your apache/php/watchdog log?
This can happen if the code you're trying to import has a syntax error.
Comment #3
xecstasyx commentedi found this on my apache log
HP Fatal error: __clone method called on non-object in /var/www/web/includes/common.inc on line 1722, referer: http://www.thefoodlinks.com/web/es/admin/build/pages/nojs/operation/node_view/actions/addso line 1722 on common.inc says
Comment #4
esmerel commentedComment #5
venusrising commentedI have the same issue but it returns and Ajax cannot build error.
Comment #6
foxtrotcharlie commentedI also encountered an error when trying to import a node panel variant. I get the following alert:
And I have the same error in my apache error log:
Comment #7
foxtrotcharlie commentedAs a workaround, I used chaos tools' bulk exporter, and was able to do the import that way. Worked perfectly.
Comment #8
EvanDonovan commentedI am also receiving the error: "Fatal error: __clone method called on non-object in /public_html/includes/common.inc on line 1693
" on admin/build/pages/ajax/operation/node_view/actions/import/form.
I'm going to try backtracing that on my dev site now.
Comment #9
EvanDonovan commentedLooks like the function immediately before drupal_clone in the chain is page_manager_export_task_handler() on line 598 of ctools/page_manager/page_manager.admin.inc. The argument being passed by page_manager_handler_import_validate() is as follows:
Interestingly, it seems like that argument is being passed directly on to drupal_clone(). Obviously, that all - including the return $handlers - does not constitute a single object. Seems like an eval() is missing or something, so that drupal_clone() will take $handlers instead of the whole import code.
I will continue looking...
Comment #10
EvanDonovan commentedI'm stumped for now. I've reviewed the code in page_manager.module & it looks like drupal_clone is being called on the text that is passed in via the web form. However, that text includes a return so I don't see how drupal_clone could ever clone it. I've tried various simple things to add evals or comment out different parts of the code but I don't know enough about how it works to solve the problem. I am just going to create my panels from scratch for now.
Hope my debugging info is helpful & this can be resolved soon...
Comment #11
EvanDonovan commented@foxtrotcharlie: How does the workaround work? Does that require you to store the panel data in a module rather than the DB?
Comment #12
merlinofchaos commentedOk, yeah, variant import had some totally wrong code in it. Fixed and checked in. Thanks for the help looking into this.
Comment #13
merlinofchaos commentedOh and variants are totally a ctools thing, so moving this to the right queue.
Comment #14
foxtrotcharlie commented@EvanDonovan - yes, it's stored in a module (the bulk exporter creates all the code for you). But it can be overridden, and the benefit is that the original is always available so you can revert back to it at any point.
Comment #15
EvanDonovan commentedSure, no problem. The more info I can provide, the quicker the bugs can get fixed :)
I guess the overlap between CTools & Panels makes it difficult for people to know which queue for people to put things in, since Panels is the user-facing part.
Comment #16
venusrising commentedI cannot import variants either. I get the Ajax error warning too.
Comment #17
venusrising commentedAlso when I try to export a the page from another site it says:
This operation trail does not exist. I tried to use this as a workaround but no luck.
Comment #18
merlinofchaos commentedWhy are you re-opening a fixed issue? If you're re-opening the issue you had better be providing some information about why the fix didn't work or something. Otherwise you're just being rude.
Comment #19
venusrising commentedWell, I assumed if I was adding content then the post would be active so I figured I needed to fill out all fields accordingly. I also tried the bulk export workaround and I was trying to share my findings in the effort to alert others that it may not solve the issue. You really should try to cut people some slack here that are trying to participate; assuming someone is being rude is just not very nice.
Comment #20
merlinofchaos commentedSorry, "trying to participate" requires providing meaningful information. Or at least showing an effort to do so. One or two sentence followups that change issue statuses without justification is not participating. Maybe you did not intend to be rude, but that does not change the fact that you were being rude. I recommend you go read up on the handbook pages that describe how to report bugs and get support.
And perhaps I'm not being nice, but it is your responsibility to learn how to participate. I deal with an extraordinary volume in my issue queues and I am not going to spend a lot of it on people who seem uninterested in learning. A quick perusal of your history shows a tendency for 1 or 2 sentence posts or reports that completely lack detail, providing no ability for anyone to do any kind of troubleshooting with you. You have added posts to issues that are already marked duplicate. You have then gone and created new issues with the exact same message, which then had to be marked, surprise, duplicate.
We are not mindreaders. We do not know how your site is set up. We do not know what you did to get an error message. I have no idea if you upgraded to -dev or if you're just continuing to use the 1.0 version which obviously does not have the fix in it. We are volunteers who are providing this service for free, and while I applaud you for attempting to participate, currently your participation makes our work harder not easier, because you do not provide detailed reports.
And you know what the best part is? You took the time to chew me out for calling you rude, but what you didn't do is explain why you re-opened this issue. If you consider this valuable participation, please re-evaluate. Please consider the information you provide when you post. As a community, we do value participation, but we do require our participants to learn how to participate.
Comment #21
venusrising commented1. I did explain why I thought I needed to re-open the issue above (see quote below)
"Well, I assumed if I was adding content then the post would be active so I figured I needed to fill out all fields accordingly." I have tried to read: http://drupal.org/node/317 in the past and I never saw anything that explained the status portion so I was doing my best to use logic.
Also, I was also trying to solve the issue with other methods I read in the post by using the suggestion of the bulk import tool that is why I posted " Also when I
try to export a the page from another site it says:
"This operation trail does not exist. I tried to use this as a workaround but no luck." Perhaps I should have been more clear what I was trying to say is I tried to use another site and export the panel variant and got the message of "This operation trail does not exist. I posted this so if someone else got the message too it might help narrow down the problem.
I did not post an issue and then mark it with urgent or some nonsense like that I know you put in a great deal of time with these modules and they are appreciated but please remember that not all of us our coders, and it takes more time to come back here and try to share ones findings. Sometimes all it takes is a sentence or two to point someone in the right direction, it also makes me feel more excited to learn more so they can help more. Harsh tones can just be a bit off-putting after all isn't this about fostering a community environment and building something together?
Comment #22
merlinofchaos commentedYou know what you haven't done? YOu haven't even confirmed what version you' used. You haven't told anyone explicitly what you've done.
You are worried about my harsh tones, but you're trying to get me to troubleshoot stuff when you not only can't be bothered to provide information, you complain about it when you're told to.
Enough of this. As of now I'm assuming you aren't using the -dev version, downloaded sometime after I marked the issue as fixed. That means you are not using the fixed version, so of course you're still having problems. The reason I assume this, is because if you were using the -dev version, you would have said so.