Why my add to cart button not working and responding some errors?

greeting of the day, i am new in drupal, i set up products which is look like this:

my simple product:

enter image description here

and every setting is correct i checked everywhere there no problem i am facing but once i click on add to cart button the error something like error showing showing you below i don’t know how can i solve this and also i don’t have deep knowledge in drupal 7:

enter image description here

error message after clicking on add to cart button:

can someone help or give me any hints me that how can i solve this errors? your any help must be appreciated.

I finished personal project, I would like some help cleaning it up and making look nicer, and easier to work with

I just finished working on a personal project, it is a sort of email type program where you create an account and you can message people, the code works(as far as I’m aware) but it is not clean, different areas have different indents, i add more variable than I need, I print things that don’t need to be printed and probably way more than that.

( I realise that it will say import getpass ,and have nothing for it in the code , that is because i forgot to change the password inputs to getpass inputs before putting it on my drive. )

If anyone is willing to help or give advice that would be gratefully appreciated…

Thanks, King

Where the code is located in your files you need a folder called Data with txt files: accountIDs, addCommandList, isAdmin, names, nicknames, passwords. a folder called messages in it a folder called received.

import random from random import * import datetime import string import os import getpass global usernames global passwords global jointPassList usernames = [line.strip()for line in open('Data/names.txt', 'r')] passwords = [line.strip()for line in open('Data/passwords.txt', 'r')] isAdmin = [line.strip()for line in open('Data/isAdmin.txt', 'r')] accountIDs = [line.strip()for line in open('Data/accountIDs.txt', 'r')] nicknames = [line.strip()for line in open('Data/nicknames.txt', 'r')] jointPassList ='\n'.join(map(str, passwords))  def main():                 print('\n')                 print('\n')                 print('/help (1/2) for help')                 currentUserIndex = usernames.index(ascname)                 command =input('>>>')                 if command =='/help':                                  print('/signout       | sign out\n/details        | account details\n/setpas        | set password\n/userlist     | all users\n/mymessages | your messages\n/message | message\n/addcommand | add command')                                 input()                                 main()                 if command =='/details':                                  print('Name:      ', ascname)                                 print('AccountID: ', accountIDs[currentUserIndex])                                 print('Nickname:  ', nicknames[currentUserIndex])                                 input()                                 main()                 if command =='/setpas':                                  newpas =input('Enter your new password: ')                                 passwords[currentUserIndex] = newpas                                 jointPassList ='\n'.join(map(str, passwords))                                 openfile =open('Data/passwords.txt', 'w')                                 openfile.write(jointPassList)                                 openfile.close()                                                       input()                                 main()                 if command =='/userlist':                                 userlist =open('Data/names.txt').read()                                 print(userlist)                                 input()                                 main()                 if command =='/message':                                 whatuser =input('What user: ')                                 if whatuser in usernames:                                     message =input('What message would you like to send: ')                                     openfile =open('Data/messages/recieved/'+whatuser+'.txt', 'a')                                     date = str(datetime.datetime.now())                                     openfile.write(date + ' : ')                                     openfile.write(message+'\n')                                     openfile.close()                                     input()                                     main()                                  elif whatuser not in usernames:                                                 print('Nobody was found.')                                                 input()                                                 main()                  if command =='/mymessages':                                 messagesList = [line.strip()for line in open('Data/messages/recieved/'+ascname+'.txt', 'r')]                                 messages = '\n'.join(messagesList)                                 print(messages)                                 input()                                 main()                  if command =='/addcommand':                                 openfile =open('Data/addCommandList.txt', 'a')                                 addcommand =input('What would you like see added to this database: ')                                 openfile.write(addcommand+'\n')                                 openfile.close()                                 input()                                 main()                  if command =='/admin':                                 print(isAdmin[currentUserIndex])                                                                if isAdmin[currentUserIndex] =='True':                                                 print('Nice :)')                                                 input()                                                 main()                                  elif isAdmin[currentUserIndex] =='False':                                                 print('You are not an Admin')                                                 change =input()                                                 if change =='False':                                                                 isAdmin[currentUserIndex] = True                                                                 main()                                                 else:                                                                 main()                                  if isAdmin[currentUserIndex] =='False':                                                 delete =input('Are you sure you would like to delete your account: ')                                                 if delete =='y':                                                                 accountIDs.remove(accountIDs[currentUserIndex])                                                                 isAdmin.remove(isAdmin[currentUserIndex])                                                                 usernames.remove(usernames[currentUserIndex])                                                                 passwords.remove(passwords[currentUserIndex])                                                                 nicknames.remove(nicknames[currentUserIndex])                                                                 os.remove('Data/messages/recieved/'+ascname+'.txt')                                                                 openfile = open('Data/names.txt', 'w')                                                                 openfile.write(name + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/accountIDs.txt', 'w')                                                                 openfile.write(str(accountID) + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/nicknames.txt', 'w')                                                                 openfile.write(nickname + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/passwords.txt', 'w')                                                                 openfile.write(password + '\n')                                                                 openfile.close()                                                                  openfile = open('Data/isAdmin.txt', 'w')                                                                 openfile.write(adminFalse + '\n')                                                                 openfile.close()                                                                 print('Complete...')                                                                 signin()                   if command =='/signout':                                  areYouSure =input('Are you sure you would like to sign out(y/n): ')                                 if areYouSure =='y':                                                 print('Signing out\n.\n.\n.')                                                 signin()                                 elif areYouSure =='n':                                                 main()                                 else:                                                 main()                   else:                                 print(command, 'is not a command in our library, type /addcommand to request new command.')                                 input()                                 main()  def signin():                 existingAccount =input('Do you have an existing account (y/n): ')                 if existingAccount =='y':                                 global ascname                                 global ascpass                                 ascname =input('Enter your username: ')                                 currentUsername = ascname                                 if ascname in usernames:                                                 userIndex = usernames.index(ascname)                                                 print('Correct username.')                                                 ascpass =input('Enter your password: ')                                                 while ascpass in passwords:                                                                 passcheck = passwords.index(ascpass)                                                                 if userIndex == passcheck:                                                                                 print('welcome back', ascname + '.')                                                                                 main()                                                                  else:                                                                                 wrongPass =input('Incorrect password.')                                                                                 input()                                                                                 signin()                                                 print('Yes')                                                 wrongPass =input('Incorrect password.')                                                 input()                                                 signin()                                 elif ascname not in usernames:                                                 wrongName =input('Incorrect username.')                                                 input()                                                 signin()                                 else:                                                 #debuging                                                 print('Error')                                                 singin()                  elif existingAccount =='n':                                 name =str(input('Enter your name: '))                                 while len(name) == 0:                                                 name =input("You haven't entered anything, try again.")                                                 input()                                                 signin()                                 if name in open('Data/names.txt').read():                                                 name =input('That name already exists.')                                                 input()                                                 signin()                                 usernames.append(name)                                 password =input('Enter your new password: ')                                 while len(password) < 4:                                                 password =input('Your password must be 5 characters long.')                                                 input()                                                 signin()                                 passwords.append(password)                                  nickname =input('Enter your nickname: ')                                 accountID =random()                                 while accountID in accountIDs:                                                 accountID =random()                                  adminFalse = str(False)                                 isAdmin.append(adminFalse)                                  openfile = open('Data/messages/recieved/' +name+ '.txt',  'w+')                                 openfile.write('\n')                                 openfile.close()                                  openfile = open('Data/names.txt', 'a')                                 openfile.write(name + '\n')                                 openfile.close()                                  openfile = open('Data/accountIDs.txt', 'a')                                 openfile.write(str(accountID) + '\n')                                 openfile.close()                                  openfile = open('Data/nicknames.txt', 'a')                                 openfile.write(nickname + '\n')                                 openfile.close()                                  openfile = open('Data/passwords.txt', 'a')                                 openfile.write(password + '\n')                                 openfile.close()                                  openfile = open('Data/isAdmin.txt', 'a')                                 openfile.write(adminFalse + '\n')                                 openfile.close()                                    signin()                  else:                                 signin()  signin() 

I want to do some data entry for sir for $20

Ifyou think, need a virtual assistant for Data Entry, Finding Person, Data From different resources or web research , then you on the right place. I will do any kind of Data Entry or web researchfor you with 100% satisfaction. I will provide you outstanding work within time frame + 100% Accuracy.

by: Masud670
Created: —
Category: Data Entry
Viewed: 179


Auditd Log all executions except some scripts

I configured my auditd to log all execve syscalls using these rules:

-a exit,always -F arch=b32 -S execve -a exit,always -F arch=b64 -S execve 

While this perfectly captures all activity of any user on the system, obviously there is a lot of noise as well. I’ve added a few exceptions, like:

-a exit,never -F arch=b32 -S execve -F exe=/bin/date -a exit,never -F arch=b64 -S execve -F exe=/bin/date 

Now the only noise left, that I’d still like to exclude is the execution of some scripts, through /bin/sh. The auserach output of those looks like this:

type=PROCTITLE msg=audit(03/21/19 13:35:01.579:7561) : proctitle=/bin/sh /usr/lib/sysstat/debian-sa1 1 1  type=PATH msg=audit(03/21/19 13:35:01.579:7561) : item=2 name=/lib64/ld-linux-x86-64.so.2 inode=2228626 dev=fc:01 mode=file,755 ouid=root ogid=root rdev=00:00 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0  type=PATH msg=audit(03/21/19 13:35:01.579:7561) : item=1 name=/bin/sh inode=1572884 dev=fc:01 mode=file,755 ouid=root ogid=root rdev=00:00 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0  type=PATH msg=audit(03/21/19 13:35:01.579:7561) : item=0 name=/usr/lib/sysstat/debian-sa1 inode=1968913 dev=fc:01 mode=file,755 ouid=root ogid=root rdev=00:00 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0  type=EXECVE msg=audit(03/21/19 13:35:01.579:7561) : argc=4 a0=/bin/sh a1=/usr/lib/sysstat/debian-sa1 a2=1 a3=1  type=SYSCALL msg=audit(03/21/19 13:35:01.579:7561) : arch=x86_64 syscall=execve success=yes exit=0 a0=0x561ccb6c2510 a1=0x561ccb6c24b0 a2=0x561ccb6c24d0 a3=0x7fc8166fd810 items=3 ppid=16157 pid=16158 auid=root uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=52 comm=debian-sa1 exe=/bin/dash key=exec  

So /usr/lib/sysstat/debian-sa1 is executed using /bin/sh (which in this case is a link to /bin/dash). Here I obviously don’t want to exclude all executions of /bin/sh or /bin/dash, but only those to a handful of scripts I’m allowing.

Is there a way to specify such an exception? I tried something like this:

-a exit,never -F arch=b32 -S execve -F exe=/bin/dash -F path=/usr/lib/sysstat/debian-sa1 -a exit,never -F arch=b64 -S execve -F exe=/bin/dash -F path=/usr/lib/sysstat/debian-sa1 -a exit,never -F arch=b32 -S execve -F exe=/usr/lib/sysstat/debian-sa1 -a exit,never -F arch=b64 -S execve -F exe=/usr/lib/sysstat/debian-sa1 

but that didn’t work.

According to man auditctl(8) it’s also not possible to check a0,a1,... for a string, as pointers are used there. Am I missing something here, or is this simply not possible?

Enter page number of some context in a sentence of a paragraph in MS Word document file

I am writing an article that has too many pages. Still i am writing and page numbers change all the time. I want to mention some page numbers in my word file which exist at few page next to current page in sentence of a paragraph. Everyday page number change so I used to change the page number manually. Is there any way to make it just like insert page number at footer? Please help me if there is an elegant way.

Thanks Rajesh